Function

nw_connection_cancel(_:)

Cancels the connection and gracefully disconnects any established network protocols.

Declaration

func nw_connection_cancel(_ connection: nw_connection_t)

See Also

Canceling Connections

func nw_connection_force_cancel(nw_connection_t)

Cancels the connection and immediately disconnects any established network protocols.

func nw_connection_cancel_current_endpoint(nw_connection_t)

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