Contents

cancel()

Cancel the session.

Declaration

func cancel()

Discussion

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