Function

nw_listener_set_state_changed_handler(_:_:)

Sets a handler to receive listener state updates.

Declaration

func nw_listener_set_state_changed_handler(_ listener: nw_listener_t, _ handler: nw_listener_state_changed_handler_t?)

See Also

Handling State Updates

typealias nw_listener_state_changed_handler_t

A handler that delivers listener state updates with associated errors.

struct nw_listener_state_t

States indicating whether a listener is able to accept incoming connections.