Class: Gio::InetAddressMask
- Inherits:
-
Object
- Object
- Gio::InetAddressMask
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#address ⇒ Gio::InetAddress
Address.
- #address=(address) ⇒ Gio::InetAddress
-
#equal(mask2) ⇒ TrueClass
Tests if mask and mask2 are the same mask.
-
#family ⇒ Gio::SocketFamily
Family.
- #family=(family) ⇒ Gio::SocketFamily
-
#length ⇒ Integer
Length.
- #length=(length) ⇒ Integer
-
#matches(address) ⇒ TrueClass
Tests if address falls within the range described by mask.
-
#new(addr, length) ⇒ Gio::InetAddressMask
Creates a new GInet::AddressMask representing all addresses whose first length bits match addr.
-
#new_from_string(mask_string) ⇒ Gio::InetAddressMask
Parses mask_string as an IP address and (optional) length, and creates a new GInet::AddressMask.
-
#to_string ⇒ String
Converts mask back to its corresponding string form.
Instance Method Details
#address ⇒ Gio::InetAddress
Returns address.
#address=(address) ⇒ Gio::InetAddress
#equal(mask2) ⇒ TrueClass
Tests if mask and mask2 are the same mask.
#family ⇒ Gio::SocketFamily
Returns family.
#family=(family) ⇒ Gio::SocketFamily
#length ⇒ Integer
Returns length.
#length=(length) ⇒ Integer
#matches(address) ⇒ TrueClass
Tests if address falls within the range described by mask. mask.
#new(addr, length) ⇒ Gio::InetAddressMask
Creates a new GInet::AddressMask representing all addresses whose first length bits match addr.
#new_from_string(mask_string) ⇒ Gio::InetAddressMask
Parses mask_string as an IP address and (optional) length, and creates a new GInet::AddressMask. The length, if present, is delimited by a “/”. If it is not present, then the length is assumed to be the full length of the address. on error.
#to_string ⇒ String
Converts mask back to its corresponding string form.