File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
Consider Paul's rocket mass heater.
 
subject: cannot read at java ServerSocket till C# client close
 
Similar Threads
"MISSING BYTE ORDER MARK" exception during receiving messege through socket
Persistent connection
Socket server on weblogic
BufferReader.read() int
Java Socket Close Detection, Late FINs