Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Net::Ping -- other output formats?

by nardo (Friar)
on Apr 19, 2001 at 09:21 UTC ( [id://73764]=note: print w/replies, xml ) Need Help??


in reply to Net::Ping -- other output formats?

Starky's response is correct, the discrepancy between the ping program and Net::Ping is because Net::Ping uses udp by default, while the system ping uses icmp. If you create your Net::Ping object with Net::Ping->new('icmp') you will get results that agree more closely with the system ping command (note that on unix systems you need to have root privileges to use icmp, which is why ping is suid root). It is still a little slower than the ping binary, presumably due to the ping binary being coded more efficiently and/or being a native executable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-25 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found