Function

nw_connection_set_state_changed_handler

Sets a handler to receive connection state updates.

Declaration

void nw_connection_set_state_changed_handler(nw_connection_t connection, nw_connection_state_changed_handler_t handler);

See Also

Handling State Updates

nw_connection_state_t

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

nw_connection_state_changed_handler_t

A handler that delivers connection state updates with associated errors.