Description
A collection of classes that provide different ways to ping computers.
Prerequisites
* Ruby 1.8.0 or later
* The win32-open3 and windows-pr libraries are required on MS Windows
when using the Net::Ping::External class.
* Windows 2000 or later is required to use the Ping::WMI class.
Installation
Remote Installation
gem install net-ping
Local Installation
rake test (optional)
rake install (standard) OR rake gem_install (gems)
Notes
Please read the documentation under the 'doc' directory. Especially pay
attention to the documentation pertaining to ECONNREFUSED and TCP pings.
Also note the documentation regarding down hosts.
How to require net-ping
You can do either this:
require 'net/ping'
In which case you will get Net::Ping and all of its subclasses. Or,
you can load individual subclasses like this:
require 'net/ping/tcp'
The former has the advantage of being easier to remember and all inclusive,
not to mention backwards compatible. The latter has the advantage of
reducing your memory footprint.
Known Issues
Older versions of Ruby 1.9.x may not work with UDP pings.
License
Artistic 2.0
More documentation
If you installed this library via Rubygems, you can view the inline
documentation via ri or fire up 'gem server', and point your browser at
http://localhost:8808.