Enumeration Case

NWTCPConnectionStateConnected

The connection is established. It is now possible to transfer data. If TLS is in use, the TLS handshake has finished.

Declaration

NWTCPConnectionStateConnected = 3

See Also

Connection States

NWTCPConnectionStateInvalid

The connection is in an invalid or uninitialized state.

NWTCPConnectionStateConnecting

The connection is attempting to connect. This includes endpoint resolution when applicable.

NWTCPConnectionStateWaiting

The connection has attempted to connect but failed. It is now waiting for better conditions before trying again.

NWTCPConnectionStateDisconnected

The connection is disconnected. It is no longer possible to transfer data. The application should call cancel to clean up resources.

NWTCPConnectionStateCancelled

The connection has been cancelled by the client calling cancel.