Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Falkkin (Chaplain)
on Apr 19, 2001 at 00:14 UTC ( #73642=note: print w/ replies, xml ) Need Help??


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

Short answer: for now, no.

Long answer: Eventually Net::Ping will be extended in some way (either by parsing results of Net::Ping::External, or perhaps through a new module, Net::Ping::HiRes, to allow for exactly the functionality you want. Look for this functionality in a couple of months... I'm working on it. :)


Comment on Re: Net::Ping -- other output formats?
Re: Answer: Net::Ping -- other output formats?
by tye (Cardinal) on Apr 19, 2001 at 00:21 UTC

    Can't you just use Time::HiRes and calculate how long it takes for the ping() method call to take? I realize you'll get a bit more overhead in the calculation than if the module did it for you, but it won't really add up to that much, will it?

    I guess hostname-to-IP lookup could be a problem so you might want to do that "by hand" before calling ping()?

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-25 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls