---
title: NWTCPConnectionState.disconnected
framework: networkextension
role: symbol
role_heading: Case
path: networkextension/nwtcpconnectionstate/disconnected
---

# NWTCPConnectionState.disconnected

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

## Declaration

```swift
case disconnected
```

## See Also

### Connection States

- [NWTCPConnectionState.invalid](networkextension/nwtcpconnectionstate/invalid.md)
- [NWTCPConnectionState.connecting](networkextension/nwtcpconnectionstate/connecting.md)
- [NWTCPConnectionState.waiting](networkextension/nwtcpconnectionstate/waiting.md)
- [NWTCPConnectionState.connected](networkextension/nwtcpconnectionstate/connected.md)
- [NWTCPConnectionState.cancelled](networkextension/nwtcpconnectionstate/cancelled.md)
