Class Net::Ping::External
In: lib/net/ping/external.rb
Parent: Ping

The Ping::External class encapsulates methods for external (system) pings.

Methods

ping   ping?   pingecho  

Included Modules

Windows::Console

Constants

CWINDOWS = Config::CONFIG['host_os'] =~ /mswin|win32|msdos|cygwin|mingw/i && RUBY_PLATFORM != 'java'

Public Instance methods

Pings the host using your system‘s ping utility and checks for any errors or warnings. Returns true if successful, or false if not.

If the ping failed then the Ping::External#exception method should contain a string indicating what went wrong. If the ping succeeded then the Ping::External#warning method may or may not contain a value.

ping?(host = @host)

Alias for ping

pingecho(host = @host)

Alias for ping

[Validate]