Type Alias

nw_listener_new_connection_handler_t

A handler that delivers inbound connections.

Declaration

typedef void (^nw_listener_new_connection_handler_t)(nw_connection_t connection);

See Also

Receiving Connections

nw_listener_set_new_connection_handler

Sets a handler that receives inbound connections.

nw_listener_set_new_connection_limit

Resets the number of inbound connections to deliver before rejecting connections.

nw_listener_get_new_connection_limit

Checks the remaining number of inbound connections to deliver before rejecting connections.

NW_LISTENER_INFINITE_CONNECTION_LIMIT

A static value that indicates that inbound connections should not be limited.