Class: Gio::InetAddressMask
- Inherits:
-
Object
- Object
- Gio::InetAddressMask
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#address ⇒ Gio::InetAddress
The base address.
-
#address=(address) ⇒ Gio::InetAddress
The base address.
-
#equal(mask2) ⇒ Boolean
Tests if mask and mask2 are the same mask.
-
#family ⇒ Gio::SocketFamily
The address family (IPv4 or IPv6).
-
#family=(family) ⇒ Gio::SocketFamily
The address family (IPv4 or IPv6).
-
#initialize(mask_string) ⇒ Gio::InetAddressMask
constructor
Parses mask_string as an IP address and (optional) length, and creates a new GInet::AddressMask.
-
#length ⇒ Integer
The prefix length, in bytes.
-
#length=(length) ⇒ Integer
The prefix length, in bytes.
-
#matches(address) ⇒ Boolean
Tests if address falls within the range described by mask.
-
#to_string ⇒ String
Converts mask back to its corresponding string form.
Constructor Details
#initialize(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.
Instance Method Details
#address ⇒ Gio::InetAddress
The base address.
#address=(address) ⇒ Gio::InetAddress
The base address.
#equal(mask2) ⇒ Boolean
Tests if mask and mask2 are the same mask.
#family ⇒ Gio::SocketFamily
The address family (IPv4 or IPv6).
#family=(family) ⇒ Gio::SocketFamily
The address family (IPv4 or IPv6).
#length ⇒ Integer
The prefix length, in bytes.
#length=(length) ⇒ Integer
The prefix length, in bytes.
#matches(address) ⇒ Boolean
Tests if address falls within the range described by mask. mask.
#to_string ⇒ String
Converts mask back to its corresponding string form.