Function

nw_connection_set_state_changed_handler(_:_:)

Sets a handler to receive connection state updates.

Declaration

func nw_connection_set_state_changed_handler(_ connection: nw_connection_t, _ handler: nw_connection_state_changed_handler_t?)

See Also

Handling State Updates

struct nw_connection_state_t

States indicating whether a connection can be used to send and receive data.

typealias nw_connection_state_changed_handler_t

A handler that delivers connection state updates with associated errors.