This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: cannot read at java ServerSocket till C# client close
 
Similar Threads
"MISSING BYTE ORDER MARK" exception during receiving messege through socket
Java Socket Close Detection, Late FINs
BufferReader.read() int
Socket server on weblogic
Persistent connection