Function silc_net_create_connection
SYNOPSIS
int silc_net_create_connection(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 blocks the process while trying to create
the connection. 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.
|