laziness, impatience, and hubris | |
PerlMonks |
Re: How to find out whether socket is still connected?by izut (Chaplain) |
on Aug 10, 2006 at 08:45 UTC ( [id://566575]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|