GLib.SocketClient – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
SocketClient
enable_proxy
family
local_address
protocol
timeout
tls
tls_validation_flags
type
SocketClient
add_application_proxy
connect
connect_async
connect_to_host
connect_to_host_async
connect_to_service
connect_to_service_async
connect_to_uri
connect_to_uri_async
get_enable_proxy
get_family
get_local_address
get_protocol
get_socket_type
get_timeout
get_tls
get_tls_validation_flags
set_enable_proxy
set_family
set_local_address
set_protocol
set_socket_type
set_timeout
set_tls
set_tls_validation_flags
event
SocketClient
Object Hierarchy:
Description:
public
class
SocketClient
:
Object
Namespace:
GLib
Package:
gio-2.0
Content:
Properties:
public
bool
enable_proxy
{
construct
set
;
get
; }
public
SocketFamily
family
{
construct
set
;
get
; }
public
SocketAddress
local_address
{
construct
set
;
get
; }
public
SocketProtocol
protocol
{
construct
set
;
get
; }
public
uint
timeout
{
construct
set
;
get
; }
public
bool
tls
{
construct
set
;
get
; }
public
TlsCertificateFlags
tls_validation_flags
{
construct
set
;
get
; }
public
SocketType
type
{
construct
set
;
get
; }
Creation methods:
public
SocketClient
()
Methods:
public
void
add_application_proxy
(
string
protocol)
public
SocketConnection
connect
(
SocketConnectable
connectable,
Cancellable
? cancellable =
null
)
throws
Error
public
async
SocketConnection
connect_async
(
SocketConnectable
connectable,
Cancellable
? cancellable =
null
)
throws
Error
public
SocketConnection
connect_to_host
(
string
host_and_port,
uint16
default_port,
Cancellable
? cancellable =
null
)
throws
Error
public
async
SocketConnection
connect_to_host_async
(
string
host_and_port,
uint16
default_port,
Cancellable
? cancellable =
null
)
throws
Error
public
SocketConnection
connect_to_service
(
string
domain,
string
service,
Cancellable
? cancellable =
null
)
throws
Error
public
async
SocketConnection
connect_to_service_async
(
string
domain,
string
service,
Cancellable
? cancellable =
null
)
throws
Error
public
SocketConnection
connect_to_uri
(
string
uri,
uint16
default_port,
Cancellable
? cancellable =
null
)
throws
Error
public
async
SocketConnection
connect_to_uri_async
(
string
uri,
uint16
default_port,
Cancellable
? cancellable =
null
)
throws
Error
public
bool
get_enable_proxy
()
public
SocketFamily
get_family
()
public
weak
SocketAddress
get_local_address
()
public
SocketProtocol
get_protocol
()
public
SocketType
get_socket_type
()
public
uint
get_timeout
()
public
bool
get_tls
()
public
TlsCertificateFlags
get_tls_validation_flags
()
public
void
set_enable_proxy
(
bool
enable)
public
void
set_family
(
SocketFamily
family)
public
void
set_local_address
(
SocketAddress
? address)
public
void
set_protocol
(
SocketProtocol
protocol)
public
void
set_socket_type
(
SocketType
type)
public
void
set_timeout
(
uint
timeout)
public
void
set_tls
(
bool
tls)
public
void
set_tls_validation_flags
(
TlsCertificateFlags
flags)
Signals:
public
virtual
signal
void
event
(
SocketClientEvent
event,
SocketConnectable
connectable,
IOStream
connection)
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count