Function

nw_connection_set_viability_changed_handler

Sets a handler that receives updates when data can be sent and received.

Declaration

void nw_connection_set_viability_changed_handler(nw_connection_t connection, nw_connection_boolean_event_handler_t handler);

See Also

Handling Path Updates

nw_connection_copy_current_path

Accesses the network path the connection is using.

nw_connection_set_path_changed_handler

Sets a handler that receives network path updates.

nw_connection_path_event_handler_t

A handler that delivers network path updates.

nw_connection_set_better_path_available_handler

Sets a handler that receives updates when an alternative network path is preferred over the current path.

nw_connection_boolean_event_handler_t

A handler that receives Boolean state updates from a connection, such as viability and better path state.