silc_net_listener_get_port

SYNOPSIS

    SilcUInt16 *silc_net_listener_get_port(SilcNetListener listener,
                                           SilcUInt32 *port_count);

DESCRIPTION

Returns the ports to where the `listener' is bound. This can be used to get the port if none was specified in silc_net_tcp_create_listener. Returns an array of ports of size of `port_count'. The caller must free the array with silc_free. There are as many ports in the array as there were IP addresses provided in silc_net_tcp_create_listener, or as there were ports provided in silc_net_tcp_create_listener2.