Function silc_net_create_connection_async
SYNOPSIS
int silc_net_create_connection_async(const char *local_ip, int port,
const char *host);
DESCRIPTION
Creates a connection (TCP/IP) to a remote host. Returns the connection
socket or -1 on error. This creates non-blocking socket hence the
connection returns directly. To get the result of the connect() one
must select() the socket and read the result after it's ready. If the
`local_ip' is not NULL then this will bind the `local_ip' address to
a port before creating the connection. If it is NULL then this will
directly create the connection.
|