Tcp Socked Closed Event

  • Thread starter Thread starter Haim
  • Start date Start date
H

Haim

Is there a away to detect when the remote side closed the connection?
in the old vb6 winsock object there was an Event raised when the remote side
Closed the socket connection,
Socket_Closed
 
Hi Haim,

I think there is no event fired when the remote point dropped the
connection. In the most scenerio, the event is not necessary. Asynchronous
model for socket gives same ability as the event model. So far, I think the
workaround is to do the ping-link with the socket to know if the socket is
alive.

You may refer the other reply I post to the same title in this group.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top