Function silc_client_connect_to_server
SYNOPSIS
int silc_client_connect_to_server(SilcClient client,
SilcClientConnectionParams *params,
int port, char *host, void *context);
DESCRIPTION
Connects to remote server. This is the main routine used to connect
to SILC server. Returns -1 on error and the created socket otherwise.
The `context' is user context that is saved into the SilcClientConnection
that is created after the connection is created. Note that application
may handle the connecting process outside the library. If this is the
case then this function is not used at all. When the connecting is
done the `connect' client operation is called, and the `context' is
accessible with conn->context, conn being SilcClientConnection.
If the `params' is provided they are used by the routine.
|