Soup.Socket – libsoup-2.4 Reference Manual
Packages
libsoup-2.4
Soup
Socket
async_context
clean_dispose
is_server
local_address
non_blocking
remote_address
ssl_creds
ssl_fallback
ssl_strict
timeout
tls_certificate
tls_errors
trusted_certificate
use_proxy
use_thread_context
Socket
connect_async
connect_sync
disconnect
get_fd
get_local_address
get_remote_address
is_connected
is_ssl
listen
read
read_until
start_proxy_ssl
start_ssl
write
disconnected
event
new_connection
readable
writable
Socket
Object Hierarchy:
Description:
public
class
Socket
:
Object
Namespace:
Soup
Package:
libsoup-2.4
Content:
Properties:
public
MainContext
async_context
{
construct
set
;
owned
get
; }
public
bool
clean_dispose
{
construct
set
; }
public
bool
is_server
{
get
; }
public
Address
local_address
{
construct
set
;
get
; }
public
bool
non_blocking
{
set
;
get
; }
public
Address
remote_address
{
construct
set
;
get
; }
public
void
*
ssl_creds
{
set
;
get
; }
public
bool
ssl_fallback
{
construct
set
;
get
; }
public
bool
ssl_strict
{
construct
set
;
get
; }
public
uint
timeout
{
set
;
get
; }
public
TlsCertificate
tls_certificate
{
owned
get
; }
public
TlsCertificateFlags
tls_errors
{
get
; }
public
bool
trusted_certificate
{
get
; }
public
bool
use_proxy
{
construct
set
;
get
; }
public
bool
use_thread_context
{
construct
set
;
get
; }
Creation methods:
public
Socket
(
string
optname1, ...)
Methods:
public
void
connect_async
(
Cancellable
? cancellable,
SocketCallback
callback)
public
uint
connect_sync
(
Cancellable
? cancellable =
null
)
public
void
disconnect
()
public
int
get_fd
()
public
weak
Address
get_local_address
()
public
weak
Address
get_remote_address
()
public
bool
is_connected
()
public
bool
is_ssl
()
public
bool
listen
()
public
SocketIOStatus
read
(
uint8
[] buffer,
out
size_t
nread,
Cancellable
? cancellable =
null
)
throws
Error
public
SocketIOStatus
read_until
(
uint8
[] buffer,
void
* boundary,
size_t
boundary_len,
out
size_t
nread,
bool
got_boundary,
Cancellable
? cancellable =
null
)
throws
Error
public
bool
start_proxy_ssl
(
string
ssl_host,
Cancellable
? cancellable =
null
)
public
bool
start_ssl
(
Cancellable
? cancellable =
null
)
public
SocketIOStatus
write
(
uint8
[] buffer,
out
size_t
nwrote,
Cancellable
? cancellable =
null
)
throws
Error
Signals:
public
virtual
signal
void
disconnected
()
public
signal
void
event
(
SocketClientEvent
event,
IOStream
connection)
public
virtual
signal
void
new_connection
(
Socket
arg1)
public
virtual
signal
void
readable
()
public
virtual
signal
void
writable
()
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