<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 12.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWProtocolTCP",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network13NWProtocolTCPC"
  },
  "title" : "NWProtocolTCP"
}
-->

# NWProtocolTCP

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

```
class NWProtocolTCP
```

## Topics

### Creating TCP Connections

[`Options`](/documentation/Network/NWProtocolTCP/Options)

A container of options for configuring how TCP is used on a connection.

[`definition`](/documentation/Network/NWProtocolTCP/definition)

The system definition of the Transport Control Protocol.

### Inspecting TCP State

[`Metadata`](/documentation/Network/NWProtocolTCP/Metadata)

A handle you can use to inspect a connection’s TCP state.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

### Inherits From

[`NWProtocol`](/documentation/Network/NWProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)