---
title: NWProtocolTCP
framework: network
role: symbol
role_heading: Class
path: network/nwprotocoltcp
---

# NWProtocolTCP

A network protocol for connections that use the Transmission Control Protocol.

## Declaration

```swift
class NWProtocolTCP
```

## Topics

### Creating TCP Connections

- [NWProtocolTCP.Options](network/nwprotocoltcp/options.md)
- [definition](network/nwprotocoltcp/definition.md)

### Inspecting TCP State

- [NWProtocolTCP.Metadata](network/nwprotocoltcp/metadata.md)

## Relationships

### Inherits From

- [NWProtocol](network/nwprotocol.md)

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Network Protocols

- [Building a custom peer-to-peer protocol](network/building-a-custom-peer-to-peer-protocol.md)
- [Connecting iPadOS and visionOS apps over the local network](visionos/connecting-ipados-and-visionos-apps-over-the-local-network.md)
- [NWProtocolTLS](network/nwprotocoltls.md)
- [NWProtocolQUIC](network/nwprotocolquic.md)
- [NWProtocolUDP](network/nwprotocoludp.md)
- [NWProtocolIP](network/nwprotocolip.md)
- [NWProtocolWebSocket](network/nwprotocolwebsocket.md)
- [NWProtocolFramer](network/nwprotocolframer.md)
