Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Checking if remote exists before calling send

by rasta (Hermit)
on Oct 10, 2002 at 07:24 UTC ( [id://204112]=note: print w/replies, xml ) Need Help??


in reply to Checking if remote exists before calling send

I can advice you two solutions:

1. Use SO_KEEPALIVE socket option like in the following example:
use IO::Socket; my $sock = IO::Socket::INET->new('some_server'); $sock->read(1024,$data) until $sock->atmark;
2. You may use NetPacket::ICMP to check if remote host is alive.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204112]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-18 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found