Instance Method

cancel()

Cancel the session

Declaration

func cancel()

Discussion

Move into the NWUDPSessionStateCancelled state. The connection will be terminated, and all handlers will be cancelled.