public class Socket : Object {
public weak void async_context { get; construct } ;
public weak bool is_server { get; } ;
public weak Address local_address { get; construct } ;
public weak bool non_blocking { get; set; } ;
public weak Address remote_address { get; construct } ;
public weak void ssl_creds { get; set; } ;
public weak uint timeout { get; set; } ;
public Socket ( string optname1 ) ;
public signal void disconnected ( ) ;
public signal void new_connection ( Socket p0 ) ;
public signal void readable ( ) ;
public signal void writable ( ) ;
public void connect_async ( GLib.Cancellable cancellable,
SocketCallback callback ) ;
public uint connect_sync ( GLib.Cancellable cancellable ) ;
public void disconnect ( ) ;
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 ( void** buffer,
ulong len,
ulong nread,
GLib.Cancellable cancellable )
throws GLib.Error;
public SocketIOStatus read_until ( void** buffer,
ulong len,
void** boundary,
ulong boundary_len,
ulong nread,
bool got_boundary,
GLib.Cancellable cancellable )
throws GLib.Error;
public bool start_proxy_ssl ( string ssl_host,
GLib.Cancellable cancellable ) ;
public bool start_ssl ( GLib.Cancellable cancellable ) ;
public SocketIOStatus write ( void** buffer,
ulong len,
ulong nwrote,
GLib.Cancellable cancellable )
throws GLib.Error;
}

public Socket ( string optname1 ) ;
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 is_server { get; } ;
public weak Address local_address { get; construct } ;
public weak bool non_blocking { get; set; } ;
public weak Address remote_address { get; construct } ;
public weak void ssl_creds { get; set; } ;
public weak uint timeout { get; set; } ;
public void connect_async ( GLib.Cancellable cancellable,
SocketCallback callback ) ;
public uint connect_sync ( GLib.Cancellable cancellable ) ;
public void disconnect ( ) ;
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 ( void** buffer,
ulong len,
ulong nread,
GLib.Cancellable cancellable )
throws GLib.Error;
public SocketIOStatus read_until ( void** buffer,
ulong len,
void** boundary,
ulong boundary_len,
ulong nread,
bool got_boundary,
GLib.Cancellable cancellable )
throws GLib.Error;
public bool start_proxy_ssl ( string ssl_host,
GLib.Cancellable cancellable ) ;
public bool start_ssl ( GLib.Cancellable cancellable ) ;
public SocketIOStatus write ( void** buffer,
ulong len,
ulong nwrote,
GLib.Cancellable cancellable )
throws GLib.Error;
Created by Valadoc