gio.network_service
Module for [NetworkService] class
Types 3
Like gio.network_address.NetworkAddress does with hostnames, gio.network_service.NetworkService 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.srv_target.SrvTarget for more information about SRV records, and see gio.socket_connectable.SocketConnectable for an example of using the connectable interface.
Methods
NetworkServiceGidBuilder builder() static nothrowGet builder for [gio.network_service.NetworkService] Returns: New builder objectstring domain() @property nothrowGet `domain` property. Returns: Network domain, for example `example.com`.string protocol() @property nothrowGet `protocol` property. Returns: Network protocol, for example `tcp`.string scheme() @property nothrowGet `scheme` property. Returns: Network scheme (default is to use service).void scheme(string propval) @property nothrowSet `scheme` property. Params: propval = Network scheme (default is to use service).string service() @property nothrowGet `service` property. Returns: Service name, for example `ldap`.string getDomain() nothrowGets the domain that srv serves. This might be either UTF-8 or ASCII-encoded, depending on what srv was created with. Returns: srv's domain namestring getScheme() nothrowGets the URI scheme used to resolve proxies. By default, the service name is used as scheme. Returns: srv's scheme namevoid setScheme(string scheme) nothrowSet's the URI scheme used to resolve proxies. By default, the service name is used as scheme.classNetworkServiceGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.socket_connectable.SocketConnectableGidBuilderImpl!T
Fluent builder implementation template for gio.network_service.NetworkService
Methods
T domain(string propval) nothrowSet `domain` property. Params: propval = Network domain, for example `example.com`. Returns: Builder instance for fluent chainingT protocol(string propval) nothrowSet `protocol` property. Params: propval = Network protocol, for example `tcp`. Returns: Builder instance for fluent chainingT scheme(string propval) nothrowSet `scheme` property. Params: propval = Network scheme (default is to use service). Returns: Builder instance for fluent chainingT service(string propval) nothrowSet `service` property. Params: propval = Service name, for example `ldap`. Returns: Builder instance for fluent chainingFluent builder for gio.network_service.NetworkService
Methods