in reply to Check if Socket is alive before send
DESCRIPTION"IO::Socket::INET" provides an object interface to creating and using sockets in the AF_INET domain. It is built upon the IO::Socket interface and inherits all the methods defined by IO::Socket.
and IO::Socket provides the method connected():
connectedIf the socket is in a connected state the peer address is returned. If the socket is not in a connected state then undef will be returned.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check if Socket is alive before send ("connected")
by tye (Sage) on Nov 19, 2007 at 16:55 UTC |