Class | Sys::Host |
In: |
ext/bsd/sys/host.c
|
Parent: | Object |
The Host class encapsulates information about your machine, such as
the host name and IP address.
VERSION | = | 0.6.2 | The version of this library. This is a string, not a number. |
Returns the hostname of the current host. This may or not return the FQDN, depending on your system.
: Yields a HostInfo struct containing various bits of information about the local machine for each entry in the hosts table. In non-block form, returns an array of HostInfo structs.
The Struct::HostInfo struct contains 5 fields: