Function

nw_listener_get_port

The port on which the listener can accept connections.

Declaration

uint16_t nw_listener_get_port(nw_listener_t listener);

Discussion

The listener's port is available once the listener is in the ready state.

See Also

Creating Listeners

nw_listener_create

Initializes a network listener, which will select a random port.

nw_listener_create_with_port

Initializes a network listener with a specified local port.

nw_listener_create_with_connection

Initializes a network listener to receive new streams on a multiplexed connection.

nw_listener_set_queue

Sets the queue on which all listener events are delivered.

nw_listener_start

Registers for listening for inbound connections.

nw_listener_cancel

Stops listening for inbound connections.