Detecting when one side of a Socket Connection Closes
-
I am using the Socket class to communicate between two applications and if I close my server app closing the socket connections my client app is unable to detect that it is closed. Even doing a send from the client app does not throw an exception. Does anyone know how to detect if a socket has been closed from the other side? Thanks Kurt
-
I am using the Socket class to communicate between two applications and if I close my server app closing the socket connections my client app is unable to detect that it is closed. Even doing a send from the client app does not throw an exception. Does anyone know how to detect if a socket has been closed from the other side? Thanks Kurt
What does the Connected property read as when you do this? Is there a timeout issue, i.e. you haven't waited long enough for the timeout to kick in and say the connection has been closed?
only two letters away from being an asset
-
What does the Connected property read as when you do this? Is there a timeout issue, i.e. you haven't waited long enough for the timeout to kick in and say the connection has been closed?
only two letters away from being an asset