my dog learned polymorphism*
The moose likes Sockets and Internet Protocols and the fly likes cannot read at  java ServerSocket till C# client close Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "cannot read at  java ServerSocket till C# client close" Watch "cannot read at  java ServerSocket till C# client close" New topic
Author

cannot read at java ServerSocket till C# client close

Asif Kadiwala
Greenhorn

Joined: Jun 10, 2008
Posts: 17
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot read at java ServerSocket till C# client close