int silc_net_set_socket_opt(int sock, int level, int option, int on);
Sets a option for a socket. This function can be used to set various options for the socket. Some of the options might be system specific.