NetworkService
Object Hierarchy:
Camel.NetworkService
Camel.NetworkService
Camel.NetworkService
Camel.Service
Camel.Service
Camel.Service->Camel.NetworkService
Camel.Object
Camel.Object
Camel.Object->Camel.Service
GLib.Object
GLib.Object
GLib.Object->Camel.Object
GLib.Initable
GLib.Initable
GLib.Initable->Camel.Service
Description:
[
CCode ( type_cname =
"CamelNetworkServiceInterface" , type_id =
"camel_network_service_get_type ()" ) ]
[
Version ( since =
"3.2" ) ]
public interface NetworkService :
Service
Content:
Properties:
Methods:
public async bool can_reach (Cancellable ? cancellable = null ) throws Error
Asynchronously attempts to determine whether or not the host described
by this 's connectable
property can be reached, without actually trying to connect to it.
public bool can_reach_sync (Cancellable ? cancellable = null ) throws Error
Attempts to determine whether or not the host described by
this 's connectable
property can be reached, without actually trying to connect to it.
public abstract IOStream connect_sync (Cancellable ? cancellable = null ) throws Error
Attempts to establish a network connection to the server described by
this , using the preferred
security_method to secure the connection.
public abstract uint16 get_default_port (NetworkSecurityMethod method)
Returns the default network port number for
this and the security method method
, as defined in /etc/services.
public bool get_host_reachable ()
Returns true if
this believes that the host pointed to by
connectable can be reached.
public abstract unowned string ? get_service_name (NetworkSecurityMethod method)
Returns the standard network service name for
this and the security method method
, as defined in /etc/services.
public abstract unowned SocketConnectable new_connectable ()
public SocketConnectable ref_connectable ()
Returns the socket endpoint for the network service to which
this is a client.
public void set_connectable (SocketConnectable ? connectable)
Sets the socket endpoint for the network service to which
this is a client.
public IOStream ? starttls (IOStream base_stream) throws Error
Creates a TlsClientConnection wrapping
base_stream
, which is assumed to communicate with the server identified by this 's
connectable .
Inherited Members:
All known members inherited from class Camel.Service
All known members inherited from class Camel.Object
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.Initable