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.
static VALUE host_hostname(){
: 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:
name (String)
aliases (Array)
addr_type (Integer) => Typically 2 (AF_INET) or 28 (AF_INET6)
length (Integer) => Typically 4 (IPv4) or 16 (IPv6)
addr_list (Array)
static VALUE host_info(VALUE klass){
Generated with the Darkfish Rdoc Generator 2.