Results 1 to 2 of 2

Thread: Flush Winsock Connections

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    93
    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

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width