InetAddress
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_inet_address_get_type ()" ) ]
public class InetAddress :
Object
`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).
Content:
Properties:
Creation methods:
Methods:
- public bool equal (InetAddress other_address)
Checks if two InetAddress instances are
equal, e.
- public SocketFamily get_family ()
Gets this's family
- public bool get_is_any ()
Tests whether this is the "any"
address for its family.
- public bool get_is_link_local ()
Tests whether this is a link-local
address (that is, if it identifies a host on a local network that is not connected to the Internet).
- public bool get_is_loopback ()
Tests whether this is the loopback
address for its family.
- public bool get_is_mc_global ()
Tests whether this is a global
multicast address.
- public bool get_is_mc_link_local ()
Tests whether this is a link-local
multicast address.
- public bool get_is_mc_node_local ()
Tests whether this is a node-local
multicast address.
- public bool get_is_mc_org_local ()
Tests whether this is an
organization-local multicast address.
- public bool get_is_mc_site_local ()
Tests whether this is a site-local
multicast address.
- public bool get_is_multicast ()
Tests whether this is a multicast
address.
- public bool get_is_site_local ()
Tests whether this 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).
- public size_t get_native_size ()
Gets the size of the native raw binary address for
this.
- public virtual unowned uint8[] to_bytes ()
Gets the raw binary address data from this
.
- public virtual string to_string ()
Converts this to string form.
Inherited Members:
All known members inherited from class GLib.Object