
CAsyncSocket and dead sockets
If a peer closes the other one gets a OnClose event.
If the network pull the plug, it will time out , you'll get a OnClose with
an error message.
TCP chats away down below, so you dont have to poll.
Have a look at this little app, I use it because theres actually a hell of a
lot more to TCP comms than I thought http://www.geocities.com/coshunt/
Quote:
> Suppose I have a simple client-server relationship between
> remote systems communicating via a socket connection. By
> what means would the client or server detect if the other
> has explicitly terminated the connection or is no longer
> responding? The idea will be to allow the client and
> server to automatically re-connect in the case of a
> temporary network outage, unexpected failure of one, or
> explicit restart of one.