libsoup-2.2 Reference Manual

Synopsis

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 ) ;
}

Socket Description

Details

Constructor Details

Socket ()
    public                              Socket                    ( string              optname1 ) ;		

Field Details

Signal Details

connect_result
    public    signal void               connect_result            ( int                 p0 )  ;		

disconnected
    public    signal void               disconnected              (  )  ;		

new_connection
    public    signal void               new_connection            ( Socket              p0 )  ;		

readable
    public    signal void               readable                  (  )  ;		

writable
    public    signal void               writable                  (  )  ;		

Property Details

async_context
    public    weak void                 async_context             { get; construct } ;		

cloexec
    public    weak bool                 cloexec                   { get; set; } ;		

is_server
    public    weak bool                 is_server                 { get; } ;		

nodelay
    public    weak bool                 nodelay                   { get; set; } ;		

non_blocking
    public    weak bool                 non_blocking              { get; set; } ;		

reuseaddr
    public    weak bool                 reuseaddr                 { get; set; } ;		

ssl_creds
    public    weak void                 ssl_creds                 { get; set; } ;		

timeout
    public    weak uint                 timeout                   { get; set; } ;		

Method Details

client_new_async ()
    public    static weak Socket        client_new_async          ( string              hostname,
                                                                    uint                port,
                                                                    void**              ssl_creds,
                                                                    SocketCallback      callback ) ;		

client_new_sync ()
    public    static weak Socket        client_new_sync           ( string              hostname,
                                                                    uint                port,
                                                                    void**              ssl_creds,
                                                                    uint                status_ret ) ;		

connect ()
    public    uint                      connect                   ( Address             remote_addr ) ;		

disconnect ()
    public    void                      disconnect                (  ) ;		

get_local_address ()
    public    weak Address              get_local_address         (  ) ;		

get_remote_address ()
    public    weak Address              get_remote_address        (  ) ;		

is_connected ()
    public    bool                      is_connected              (  ) ;		

listen ()
    public    bool                      listen                    ( Address             local_addr ) ;		

read ()
    public    SocketIOStatus            read                      ( void**              buffer,
                                                                    ulong               len,
                                                                    ulong               nread ) ;		

read_until ()
    public    SocketIOStatus            read_until                ( void**              buffer,
                                                                    ulong               len,
                                                                    void**              boundary,
                                                                    ulong               boundary_len,
                                                                    ulong               nread,
                                                                    bool                got_boundary ) ;		

server_new ()
    public    static weak Socket        server_new                ( Address             local_addr,
                                                                    void**              ssl_creds,
                                                                    SocketListenerCallback callback ) ;		

start_proxy_ssl ()
    public    bool                      start_proxy_ssl           ( string              ssl_host ) ;		

start_ssl ()
    public    bool                      start_ssl                 (  ) ;		

write ()
    public    SocketIOStatus            write                     ( void**              buffer,
                                                                    ulong               len,
                                                                    ulong               nwrote ) ;		


Created by Valadoc