Re: Socket program, cannot read untill I reopen the port.
Wednesday, June 27, 2001 11:56 AM
I suggest you read the Java Tutorial Networking Trail - the URL
is on the right. It is clearly your code that is wrong here.
My guess is that you are not implementing
your protocol properly - either the server is blocking waiting
for additional information from you before it responds, or
your write() operation is blocking because you have
sent the server more data than it expects. Reading and
writing are both blocking operations.