-
I have a server program with an array of winsocks that listen for client log ons. My problem is that sometimes the client program can crash out leaving the winsock open with the server. I would like to be able to cycle through the array of listening winsocks and check that all the cleints are still there. Is there a way that a listening server socket can confirm that there is something at the other end :confused:
-
Heartbeats.
These are small, throw-away messages that tell the other side that you are still there.
If the server has not received a message (heartbeat or otherwise) within a set amount of time, it can assume that the other side is gone and take the appropriate actions.