| Function silc_client_connect_to_server
 
 SYNOPSIS
 
    SilcAsyncOperation
    silc_client_connect_to_server(SilcClient client,
                                  SilcClientConnectionParams *params,
                                  SilcPublicKey public_key,
                                  SilcPrivateKey private_key,
                                  char *remote_host, int port,
                                  SilcClientConnectCallback callback,
                                  void *context);
DESCRIPTION
    Connects to remote server `remote_host' at port `port'.  This function
    can be used to create connection to remote SILC server and start
    SILC session in the SILC network.  The `params' may be provided
    to provide various connection parameters.  The `public_key' and the
    `private_key' is your identity used in this connection.  When
    authentication method is based on digital signatures, this key pair
    will be used.  The `callback' with `context' will be called after the
    connection has been created.  It will also be called later when remote
    host disconnects.
    If application wishes to create the network connection itself, use
    the silc_client_key_exchange after creating the connection to start
    key exchange and authentication with the server.
    Returns SilcAsyncOperation which can be used to cancel the connecting,
    or NULL on error.  Note that the returned pointer becomes invalid
    after the `callback' is called.
 
 
 
 |