Instance Method

cancelCurrentEndpoint()

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

Declaration

final func cancelCurrentEndpoint()

Discussion

Protocols that do not have handshakes, such as UDP, do not allow connections to validate connectivity on their own. Cancelling an endpoint allows you to indicate that a certain endpoint should be rejected due to a lack of valid response. If other addresses were resolved for the remote endpoint, those will be attempted next.

See Also

Canceling Connections

func cancel()

Cancels the connection and gracefully disconnects any established network protocols.

func forceCancel()

Cancels the connection and immediately disconnects any established network protocols.