File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot read at java ServerSocket till C# client close

 
Asif Kadiwala
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want send requests and receive response between C# client application and java server application using Socket programmig (TCP).

I am not able to read the Buffer using readLine() method at the java server till the C# client closes the socket. The control hangs at
String receive = in. readLine(); line till C# client closes the socket..

The same thing I have tried with java client and java server and it works fine in this case..

Can anyone tell me what can be the problem.

Thanks in advance.
Asif
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic