It derives from <GObject>.
Like <GNetworkAddress> 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 <GSrvTarget> for more information about SRV
records, and see <GSocketConnectable>
for an example of using the connectable interface.
parent-instanceNetwork domain, for example example.com.
Its value is a string, or #f.
It can only be set when the object is made, with #:domain.
Network protocol, for example tcp.
Its value is a string, or #f.
It can only be set when the object is made, with #:protocol.
Network scheme (default is to use service).
Its value is a string, or #f.
Set it with (set! (network-service:scheme self) value).
Service name, for example ldap.
Its value is a string, or #f.
It can only be set when the object is made, with #:service.
Gets the domain that self serves. This might be either UTF-8 or ASCII-encoded, depending on what self was created with.
Passed: a <GNetworkService>.
Returned: a string.
self’s domain name
Gets self’s protocol name (eg, "tcp").
Passed: a <GNetworkService>.
Returned: a string.
self’s protocol name
Gets the URI scheme used to resolve proxies. By default, the service name is used as scheme.
Passed: a <GNetworkService>.
Returned: a string.
self’s scheme name
Gets self’s service name (eg, "ldap").
Passed: a <GNetworkService>.
Returned: a string.
self’s service name
Creates a new <GNetworkService>
representing the given service, protocol, and domain.
This will initially be unresolved; use the
<GSocketConnectable> interface to
resolve it.
Passed: a string.
the service type to look up (eg, "ldap")
Passed: a string.
the networking protocol to use for service (eg, "tcp")
Passed: a string.
the DNS domain to look up the service in
Returned: a <GNetworkService>.
a new <GNetworkService>
Set’s the URI scheme used to resolve proxies. By default, the service name is used as scheme.
Passed: a <GNetworkService>.
Passed: a string.
a URI scheme