Class: Gio::InetAddress
- Inherits:
-
Object
- Object
- Gio::InetAddress
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#bytes ⇒ GObject
Bytes.
- #bytes=(bytes) ⇒ GObject
-
#equal(other_address) ⇒ TrueClass
Checks if two GInet::Address instances are equal, e.g.
-
#family ⇒ Gio::SocketFamily
Family.
- #family=(family) ⇒ Gio::SocketFamily
-
#is_any ⇒ TrueClass
Tests whether address is the “any” address for its family.
-
#is_any=(is_any) ⇒ TrueClass
Whether this is the “any” address for its family.
-
#is_any? ⇒ TrueClass
Whether this is the “any” address for its family.
-
#is_link_local ⇒ TrueClass
Tests whether address is a link-local address (that is, if it identifies a host on a local network that is not connected to the Internet).
-
#is_link_local=(is_link_local) ⇒ TrueClass
Whether this is a link-local address.
-
#is_link_local? ⇒ TrueClass
Whether this is a link-local address.
-
#is_loopback ⇒ TrueClass
Tests whether address is the loopback address for its family.
-
#is_loopback=(is_loopback) ⇒ TrueClass
Whether this is the loopback address for its family.
-
#is_loopback? ⇒ TrueClass
Whether this is the loopback address for its family.
-
#is_mc_global ⇒ TrueClass
Tests whether address is a global multicast address.
-
#is_mc_global=(is_mc_global) ⇒ TrueClass
Whether this is a global multicast address.
-
#is_mc_global? ⇒ TrueClass
Whether this is a global multicast address.
-
#is_mc_link_local ⇒ TrueClass
Tests whether address is a link-local multicast address.
-
#is_mc_link_local=(is_mc_link_local) ⇒ TrueClass
Whether this is a link-local multicast address.
-
#is_mc_link_local? ⇒ TrueClass
Whether this is a link-local multicast address.
-
#is_mc_node_local ⇒ TrueClass
Tests whether address is a node-local multicast address.
-
#is_mc_node_local=(is_mc_node_local) ⇒ TrueClass
Whether this is a node-local multicast address.
-
#is_mc_node_local? ⇒ TrueClass
Whether this is a node-local multicast address.
-
#is_mc_org_local ⇒ TrueClass
Tests whether address is an organization-local multicast address.
-
#is_mc_org_local=(is_mc_org_local) ⇒ TrueClass
Whether this is an organization-local multicast address.
-
#is_mc_org_local? ⇒ TrueClass
Whether this is an organization-local multicast address.
-
#is_mc_site_local ⇒ TrueClass
Tests whether address is a site-local multicast address.
-
#is_mc_site_local=(is_mc_site_local) ⇒ TrueClass
Whether this is a site-local multicast address.
-
#is_mc_site_local? ⇒ TrueClass
Whether this is a site-local multicast address.
-
#is_multicast ⇒ TrueClass
Tests whether address is a multicast address.
-
#is_multicast=(is_multicast) ⇒ TrueClass
Whether this is a multicast address.
-
#is_multicast? ⇒ TrueClass
Whether this is a multicast address.
-
#is_site_local ⇒ TrueClass
Tests whether address is a site-local address such as 10.0.0.1 (that is, the address identifies a host on a local network that can not be reached directly from the Internet, but which may have outgoing Internet connectivity via a NAT or firewall).
-
#is_site_local=(is_site_local) ⇒ TrueClass
Whether this is a site-local address.
-
#is_site_local? ⇒ TrueClass
Whether this is a site-local address.
-
#native_size ⇒ Integer
Gets the size of the native raw binary address for address.
-
#new_any(family) ⇒ Gio::InetAddress
Creates a GInet::Address for the “any” address (unassigned/“don’t care”) for family.
-
#new_from_bytes(bytes, family) ⇒ Gio::InetAddress
Creates a new GInet::Address from the given family and bytes.
-
#new_from_string(string) ⇒ Gio::InetAddress
Parses string as an IP address and creates a new GInet::Address.
-
#new_loopback(family) ⇒ Gio::InetAddress
Creates a GInet::Address for the loopback address for family.
-
#to_bytes ⇒ Integer
Gets the raw binary address data from address.
-
#to_string ⇒ String
Converts address to string form.
Instance Method Details
#bytes ⇒ GObject
Returns bytes.
#bytes=(bytes) ⇒ GObject
#equal(other_address) ⇒ TrueClass
Checks if two GInet::Address instances are equal, e.g. the same address.
#family ⇒ Gio::SocketFamily
Returns family.
#family=(family) ⇒ Gio::SocketFamily
#is_any ⇒ TrueClass
Tests whether address is the “any” address for its family.
#is_any=(is_any) ⇒ TrueClass
Whether this is the “any” address for its family. See g_inet_address_get_is_any().
#is_any? ⇒ TrueClass
Whether this is the “any” address for its family. See g_inet_address_get_is_any().
#is_link_local ⇒ TrueClass
Tests whether address is a link-local address (that is, if it identifies a host on a local network that is not connected to the Internet).
#is_link_local=(is_link_local) ⇒ TrueClass
Whether this is a link-local address. See g_inet_address_get_is_link_local().
#is_link_local? ⇒ TrueClass
Whether this is a link-local address. See g_inet_address_get_is_link_local().
#is_loopback ⇒ TrueClass
Tests whether address is the loopback address for its family.
#is_loopback=(is_loopback) ⇒ TrueClass
Whether this is the loopback address for its family. See g_inet_address_get_is_loopback().
#is_loopback? ⇒ TrueClass
Whether this is the loopback address for its family. See g_inet_address_get_is_loopback().
#is_mc_global ⇒ TrueClass
Tests whether address is a global multicast address.
#is_mc_global=(is_mc_global) ⇒ TrueClass
Whether this is a global multicast address. See g_inet_address_get_is_mc_global().
#is_mc_global? ⇒ TrueClass
Whether this is a global multicast address. See g_inet_address_get_is_mc_global().
#is_mc_link_local ⇒ TrueClass
Tests whether address is a link-local multicast address.
#is_mc_link_local=(is_mc_link_local) ⇒ TrueClass
Whether this is a link-local multicast address. See g_inet_address_get_is_mc_link_local().
#is_mc_link_local? ⇒ TrueClass
Whether this is a link-local multicast address. See g_inet_address_get_is_mc_link_local().
#is_mc_node_local ⇒ TrueClass
Tests whether address is a node-local multicast address.
#is_mc_node_local=(is_mc_node_local) ⇒ TrueClass
Whether this is a node-local multicast address. See g_inet_address_get_is_mc_node_local().
#is_mc_node_local? ⇒ TrueClass
Whether this is a node-local multicast address. See g_inet_address_get_is_mc_node_local().
#is_mc_org_local ⇒ TrueClass
Tests whether address is an organization-local multicast address.
#is_mc_org_local=(is_mc_org_local) ⇒ TrueClass
Whether this is an organization-local multicast address. See g_inet_address_get_is_mc_org_local().
#is_mc_org_local? ⇒ TrueClass
Whether this is an organization-local multicast address. See g_inet_address_get_is_mc_org_local().
#is_mc_site_local ⇒ TrueClass
Tests whether address is a site-local multicast address.
#is_mc_site_local=(is_mc_site_local) ⇒ TrueClass
Whether this is a site-local multicast address. See g_inet_address_get_is_mc_site_local().
#is_mc_site_local? ⇒ TrueClass
Whether this is a site-local multicast address. See g_inet_address_get_is_mc_site_local().
#is_multicast ⇒ TrueClass
Tests whether address is a multicast address.
#is_multicast=(is_multicast) ⇒ TrueClass
Whether this is a multicast address. See g_inet_address_get_is_multicast().
#is_multicast? ⇒ TrueClass
Whether this is a multicast address. See g_inet_address_get_is_multicast().
#is_site_local ⇒ TrueClass
Tests whether address is a site-local address such as 10.0.0.1 (that is, the address identifies a host on a local network that can not be reached directly from the Internet, but which may have outgoing Internet connectivity via a NAT or firewall).
#is_site_local=(is_site_local) ⇒ TrueClass
Whether this is a site-local address. See g_inet_address_get_is_loopback().
#is_site_local? ⇒ TrueClass
Whether this is a site-local address. See g_inet_address_get_is_loopback().
#native_size ⇒ Integer
Gets the size of the native raw binary address for address. This is the size of the data that you get from g_inet_address_to_bytes().
#new_any(family) ⇒ Gio::InetAddress
Creates a GInet::Address for the “any” address (unassigned/“don’t care”) for family. for family.
Free the returned object with g_object_unref().
#new_from_bytes(bytes, family) ⇒ Gio::InetAddress
Creates a new GInet::Address from the given family and bytes. bytes should be 4 bytes for %G_SOCKET_FAMILY_IPV4 and 16 bytes for %G_SOCKET_FAMILY_IPV6.
#new_from_string(string) ⇒ Gio::InetAddress
Parses string as an IP address and creates a new GInet::Address. string could not be parsed.
Free the returned object with g_object_unref().
#new_loopback(family) ⇒ Gio::InetAddress
Creates a GInet::Address for the loopback address for family. for family.
Free the returned object with g_object_unref().
#to_bytes ⇒ Integer
Gets the raw binary address data from address. which should not be modified, stored, or freed. The size of this array can be gotten with g_inet_address_get_native_size().
#to_string ⇒ String
Converts address to string form. freed after use.