| Function silc_client_connect_to_client
 
 SYNOPSIS
 
    SilcAsyncOperation
    silc_client_connect_to_client(SilcClient client,
                                  SilcClientConnectionParams *params,
                                  SilcPublicKey public_key,
                                  SilcPrivateKey private_key,
                                  char *remote_host, int port,
                                  SilcClientConnectCallback callback,
                                  void *context);
DESCRIPTION
    Connects to remote client `remote_host' at port `port'.  This function
    can be used to create peer-to-peer connection to another SILC client,
    for example, for direct conferencing, or file transfer or for other
    purposes.  The `params' may be provided to provide various connection
    parameters.  The `public_key' and the `private_key' is your identity
    used in this connection.  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 with the client.
    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.
 
 
 
 |