Contents

cancel()

Cancel the connection.

Declaration

func cancel()

Discussion

This will clean up the resources associated with this object and transition this object to the NWTCPConnectionStateCancelled state.