Class | Net::Ping::ICMP |
In: |
lib/net/ping/icmp.rb
|
Parent: | Ping |
The Net::Ping::ICMP class encapsulates an icmp ping.
ICMP_ECHOREPLY | = | 0 |
ICMP_ECHO | = | 8 |
ICMP_SUBCODE | = | 0 |
data_size | [R] | Returns the data size, i.e. number of bytes sent on the ping. The default size is 56. |
Creates and returns a new Ping::ICMP object. This is similar to its superclass constructor, but must be created with root privileges (on UNIX systems), and the port value is ignored.
Associates the local end of the socket connection with the given host and port. The default port is 0.