Function

nw_connection_cancel

Cancels the connection and gracefully disconnects any established network protocols.

Declaration

void nw_connection_cancel(nw_connection_t connection);

See Also

Canceling Connections

nw_connection_force_cancel

Cancels the connection and immediately disconnects any established network protocols.

nw_connection_cancel_current_endpoint

Causes the current endpoint to be rejected, allowing the connection to try another resolved address.