Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

socket connection problem  RSS feed

raj sekhar
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
printLocal("SampleTranFrank.STReceive():Socket null ");
//DataInputStream in = new DataInputStream(s.getInputStream());
DataInputStream in = new DataInputStream(socIn);
Any help is greatly appreciated.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!