M
Michael Kennedy [UB]
Hi,
I have a project using the TcpClient and its associated NetworkStream.
Everything works well except for one condition which I haven't found any
information about dealing with:
How do I detected when the socket connection was closed on the
server-side?
That is, if my client connects to the server and everything is initialized
correctly the system runs well. But how can I tell if the server is shut
down or otherwise closes my connection without my involvement (that is
without my calling close on the TcpClient)?
Thanks,
Michael
Michael Kennedy
United Binary
http://www.unittesting.com
I have a project using the TcpClient and its associated NetworkStream.
Everything works well except for one condition which I haven't found any
information about dealing with:
How do I detected when the socket connection was closed on the
server-side?
That is, if my client connects to the server and everything is initialized
correctly the system runs well. But how can I tell if the server is shut
down or otherwise closes my connection without my involvement (that is
without my calling close on the TcpClient)?
Thanks,
Michael
Michael Kennedy
United Binary
http://www.unittesting.com