in reply to How to find out whether socket is still connected?

I think you will know if a socket crashed only when writing to it, and checking this operation results.

Is the program using some specific protocol, or you are developing your own? IRC, for example, has a PING command for checking connection status.

If you are responsible for both sides, you can implement something like that.

Igor 'izut' Sutton
your code, your rules.

  • Comment on Re: How to find out whether socket is still connected?