Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Properties Author(s) References
A GSocketConnectable for resolving SRV records
gNetworkServiceNew(service, protocol, domain)
gNetworkServiceGetService(object)
gNetworkServiceGetProtocol(object)
gNetworkServiceGetDomain(object)
gNetworkService(service, protocol, domain)
1 2 | GObject
+----GNetworkService
|
GNetworkService implements
GSocketConnectable
.
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 and example of using the connectable
interface.
GNetworkService
A GSocketConnectable
for resolving a SRV record and connecting to
that service.
gNetworkService
is the equivalent of gNetworkServiceNew
.
domain
[character : * : Read / Write / Construct Only]Network domain, eg, "example.com". Default value: NULL
protocol
[character : * : Read / Write / Construct Only]Network protocol, eg "tcp". Default value: NULL
service
[character : * : Read / Write / Construct Only]Service name, eg "ldap". Default value: NULL
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gio/stable/GNetworkService.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.