InetAddress


Object Hierarchy:

Object hierarchy for InetAddress

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).


Namespace: GLib
Package: gio-2.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members: