NetworkService
Object Hierarchy:
GLib.NetworkService
GLib.NetworkService
GLib.NetworkService
GLib.Object
GLib.Object
GLib.Object->GLib.NetworkService
GLib.SocketConnectable
GLib.SocketConnectable
GLib.SocketConnectable->GLib.NetworkService
Description:
[
CCode ( type_id =
"g_network_service_get_type ()" ) ]
public class NetworkService :
Object ,
SocketConnectable
Like NetworkAddress does with hostnames, 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 SrvTarget for more information about SRV records, and see
SocketConnectable for an example of using the connectable interface.
Content:
Properties:
public string domain { get ; construct ; }
public string protocol { get ; construct ; }
public string scheme { get ; set ; }
public string service { get ; construct ; }
Creation methods:
Methods:
public unowned string get_domain ()
Gets the domain that this serves.
public unowned string get_protocol ()
Gets this 's protocol name (eg, "tcp"
).
public unowned string get_scheme ()
Gets the URI scheme used to resolve proxies.
public unowned string get_service ()
Gets this 's service name (eg, "ldap"
).
public void set_scheme (string scheme)
Set's the URI scheme used to resolve proxies.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.SocketConnectable