Function silc_client_init
SYNOPSIS
SilcBool silc_client_init(SilcClient client, const char *username,
const char *hostname, const char *realname,
SilcClientRunning running, void *context);
DESCRIPTION
Initializes the client. This makes all the necessary steps to make
the client ready to be run. One must call silc_client_run to run the
client. Returns FALSE if error occurred, TRUE otherwise.
The `username' and `hostname' strings must be given and they must be
UTF-8 encoded. The `username' is the client's username in the
operating system, `hostname' is the client's host name and the
`realname' is the user's real name.
The `running' callback with `context' is called after the client is
running after silc_client_run or silc_client_run_one has been called.
Application may start using the Client library API after that. Setting
the callback is optional, but highly recommended.
|