This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
 
GeeCON Prague 2014
 
subject: cannot read at java ServerSocket till C# client close