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_bytes
: Return type guint8 is unsupportedmethod
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().