Package org.gnome.gio

Class NetworkService

java.lang.Object
All Implemented Interfaces:
Proxy, SocketConnectable

@Generated("io.github.jwharm.JavaGI") public class NetworkService extends GObject implements SocketConnectable
Like 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 Gio.SrvTarget for more information about SRV records, and see SocketConnectable for an example of using the connectable interface.