Hi all, I am writing a Socket client . After finishing all the transactions, I amusing the below method to close the socket:
The problem here is: when I call socket.shutDownInput(), I am getting socket Exception with message socket is already closed. But while I am calling socket.isClosed() before calling shutDownInput, its giving false. But after calling shutDownInput, its giving response as true. But actually, I am not calling socket.close() anywhere in the middle. Please help. Thanks in advance, Vignesh.B
posted 9 years ago
I would imagine you need to call shutDownInput() and shutDownOutput() _before_ calling in.close() and out.close(). Give it a try and let us know! Darrin
Life is good on the Ponderosa,<br />but mind where you step.