• Post Reply Bookmark Topic Watch Topic
  • New Topic

socket connection problem

 
raj sekhar
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can anybody let me know what might be the problem here? It just hangs without any information until and abort the pgm.
The problem is occuring while acting on the getInputStream() method of socket. I am expecting it to say something but it just hangs there.
I am not pasting all of the code but just the receive method. The send that writes data to the send has successfully completed. But the receive does not move forward and neither the socket is null.
***********
try {
if ( s != null){
socIn = s.getInputStream();
}
else{
printLocal("SampleTranFrank.STReceive():Socket null ");
return;
}
//DataInputStream in = new DataInputStream(s.getInputStream());
DataInputStream in = new DataInputStream(socIn);
***********************
Any help is greatly appreciated.
Thanks
RS
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!