NetworkService


Object Hierarchy:

GLib.NetworkService GLib.NetworkService GLib.NetworkService GLib.Object GLib.Object GLib.Object->GLib.NetworkService GLib.SocketConnectable GLib.SocketConnectable GLib.SocketConnectable->GLib.NetworkService

Description:

[ CCode ( type_id = "g_network_service_get_type ()" ) ]
public class NetworkService : Object, SocketConnectable

Like [class@Gio.

NetworkAddress] does with hostnames, `GNetworkService` provides an easy way to resolve a SRV record, and then attempt to connect to one of the hosts that implements that service, handling service priority/weighting, multiple IP addresses, and multiple address families.

See [struct@Gio.SrvTarget] for more information about SRV records, and see [iface@Gio.SocketConnectable] for an example of using the connectable interface.


Namespace: GLib
Package: gio-2.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from interface GLib.SocketConnectable