NetworkAddress


Object Hierarchy:

Object hierarchy for NetworkAddress

Description:

[ CCode ( type_id = "g_network_address_get_type ()" ) ]
public class NetworkAddress : Object, SocketConnectable

`GNetworkAddress` provides an easy way to resolve a hostname and then attempt to connect to that host, handling the possibility of multiple IP addresses and multiple address families.

The enumeration results of resolved addresses *may* be cached as long as this object is kept alive which may have unexpected results if alive for too long.

See [iface@Gio.SocketConnectable] for an example of using the connectable interface.


Namespace: GLib
Package: gio-2.0

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from interface GLib.SocketConnectable