Valadoc
|
Vala
|
Tutorial
|
API-References
|
Markup
Packages
libsoup-2.2
Soup
Socket
async_context
cloexec
is_server
nodelay
non_blocking
reuseaddr
ssl_creds
timeout
client_new_async
client_new_sync
server_new
Socket
connect
disconnect
get_local_address
get_remote_address
is_connected
listen
read
read_until
start_proxy_ssl
start_ssl
write
connect_result
disconnected
new_connection
readable
writable
Socket
Object Hierarchy:
Description:
public
class
Socket
:
Object
Namespace:
Soup
Package:
libsoup-2.2
Content:
Properties:
public
void
*
async_context
{
construct
set
;
get
; }
public
bool
cloexec
{
set
;
get
; }
public
bool
is_server
{
get
; }
public
bool
nodelay
{
set
;
get
; }
public
bool
non_blocking
{
set
;
get
; }
public
bool
reuseaddr
{
set
;
get
; }
public
void
*
ssl_creds
{
set
;
get
; }
public
uint
timeout
{
set
;
get
; }
Static methods:
public
static
weak
Socket
client_new_async
(
string
hostname,
uint
port,
void
* ssl_creds,
SocketCallback
callback)
public
static
weak
Socket
client_new_sync
(
string
hostname,
uint
port,
void
* ssl_creds,
uint
status_ret)
public
static
weak
Socket
server_new
(
Address
local_addr,
void
* ssl_creds,
SocketListenerCallback
callback)
Creation methods:
public
Socket
(
string
optname1)
Methods:
public
uint
connect
(
Address
remote_addr)
public
void
disconnect
()
public
weak
Address
get_local_address
()
public
weak
Address
get_remote_address
()
public
bool
is_connected
()
public
bool
listen
(
Address
local_addr)
public
SocketIOStatus
read
(
void
* buffer,
size_t
len,
size_t
nread)
public
SocketIOStatus
read_until
(
void
* buffer,
size_t
len,
void
* boundary,
size_t
boundary_len,
size_t
nread,
bool
got_boundary)
public
bool
start_proxy_ssl
(
string
ssl_host)
public
bool
start_ssl
()
public
SocketIOStatus
write
(
void
* buffer,
size_t
len,
size_t
nwrote)
Signals:
public
virtual
void
connect_result
(
int
p0)
public
virtual
void
disconnected
()
public
virtual
void
new_connection
(
Socket
p0)
public
virtual
void
readable
()
public
virtual
void
writable
()