public class Socket : Object {
public weak void async_context { get; construct } ;
public weak bool cloexec { get; set; } ;
public weak bool is_server { get; } ;
public weak bool nodelay { get; set; } ;
public weak bool non_blocking { get; set; } ;
public weak bool reuseaddr { get; set; } ;
public weak void ssl_creds { get; set; } ;
public weak uint timeout { get; set; } ;
public Socket ( string optname1 ) ;
public signal void connect_result ( int p0 ) ;
public signal void disconnected ( ) ;
public signal void new_connection ( Socket p0 ) ;
public signal void readable ( ) ;
public signal void writable ( ) ;
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 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,
ulong len,
ulong nread ) ;
public SocketIOStatus read_until ( void** buffer,
ulong len,
void** boundary,
ulong boundary_len,
ulong nread,
bool got_boundary ) ;
public static weak Socket server_new ( Address local_addr,
void** ssl_creds,
SocketListenerCallback callback ) ;
public bool start_proxy_ssl ( string ssl_host ) ;
public bool start_ssl ( ) ;
public SocketIOStatus write ( void** buffer,
ulong len,
ulong nwrote ) ;
}

public Socket ( string optname1 ) ;
public signal void connect_result ( int p0 ) ;
public signal void disconnected ( ) ;
public signal void new_connection ( Socket p0 ) ;
public signal void readable ( ) ;
public signal void writable ( ) ;
public weak void async_context { get; construct } ;
public weak bool cloexec { get; set; } ;
public weak bool is_server { get; } ;
public weak bool nodelay { get; set; } ;
public weak bool non_blocking { get; set; } ;
public weak bool reuseaddr { get; set; } ;
public weak void ssl_creds { get; set; } ;
public weak uint timeout { get; set; } ;
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 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,
ulong len,
ulong nread ) ;
public SocketIOStatus read_until ( void** buffer,
ulong len,
void** boundary,
ulong boundary_len,
ulong nread,
bool got_boundary ) ;
public static weak Socket server_new ( Address local_addr,
void** ssl_creds,
SocketListenerCallback callback ) ;
public bool start_proxy_ssl ( string ssl_host ) ;
public bool start_ssl ( ) ;
public SocketIOStatus write ( void** buffer,
ulong len,
ulong nwrote ) ;
Created by Valadoc