NetworkService
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.
Properties
Functions
Creates a #GSocketAddressEnumerator for @connectable.
Creates a #GSocketAddressEnumerator for @connectable that will return a #GProxyAddress for each of its addresses that you must connect to via a proxy.
Format a #GSocketConnectable as a string. This is a human-readable format for use in debugging output, and is not a stable serialization format. It is not suitable for use in user interfaces as it exposes too much information for a user.