InetAddress
GInetAddress
represents an IPv4 or IPv6 internet address. Use method@Gio.Resolver.lookup_by_name or method@Gio.Resolver.lookup_by_name_async to look up the GInetAddress
for a hostname. Use method@Gio.Resolver.lookup_by_address or method@Gio.Resolver.lookup_by_address_async to look up the hostname for a GInetAddress
.
To actually connect to a remote host, you will need a class@Gio.InetSocketAddress (which includes a GInetAddress
as well as a port number).
Skipped during bindings generation
method
to_string
: C function g_inet_address_to_string is ignoredmethod
bytes
: Property has no getter nor setterparameter
bytes
: Array parameter of type guint8 is not supported
Constructors
Properties
The address family (IPv4 or IPv6).
Whether this is a link-local address. See g_inet_address_get_is_link_local().
Whether this is the loopback address for its family. See g_inet_address_get_is_loopback().
Whether this is a global multicast address. See g_inet_address_get_is_mc_global().
Whether this is a link-local multicast address. See g_inet_address_get_is_mc_link_local().
Whether this is a node-local multicast address. See g_inet_address_get_is_mc_node_local().
Whether this is an organization-local multicast address. See g_inet_address_get_is_mc_org_local().
Whether this is a site-local multicast address. See g_inet_address_get_is_mc_site_local().
Whether this is a multicast address. See g_inet_address_get_is_multicast().
Whether this is a site-local address. See g_inet_address_get_is_loopback().
Functions
Checks if two #GInetAddress instances are equal, e.g. the same address.
Gets @address's family
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).
Tests whether @address is the loopback address for its family.
Tests whether @address is a global multicast address.
Tests whether @address is a link-local multicast address.
Tests whether @address is a node-local multicast address.
Tests whether @address is an organization-local multicast address.
Tests whether @address is a site-local multicast address.
Tests whether @address is a multicast address.
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).
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().