---
title: TCP
framework: network
role: symbol
role_heading: Structure
path: network/tcp
---

# TCP

The system definition of the Transmission Control Protocol (TCP).

## Declaration

```swift
struct TCP
```

## Overview

Overview Supports sending and receiving byte streams.

## Topics

### Initializers

- [init()](network/tcp/init().md)
- [init(_:)](network/tcp/init(_:).md)

### Instance Methods

- [ackStretchingDisabled(_:)](network/tcp/ackstretchingdisabled(_:).md)
- [connectionTimeout(_:)](network/tcp/connectiontimeout(_:).md)
- [ecnDisabled(_:)](network/tcp/ecndisabled(_:).md)
- [fastOpenAllowed(_:)](network/tcp/fastopenallowed(_:).md)
- [keepalive(idleTimeInSeconds:count:intervalInSeconds:)](network/tcp/keepalive(idletimeinseconds:count:intervalinseconds:).md)
- [maximumSegmentSize(_:)](network/tcp/maximumsegmentsize(_:).md)
- [noDelay(_:)](network/tcp/nodelay(_:).md)
- [noOptions(_:)](network/tcp/nooptions(_:).md)
- [noPush(_:)](network/tcp/nopush(_:).md)
- [persistTimeout(_:)](network/tcp/persisttimeout(_:).md)
- [retransmitConnectionDropTime(_:)](network/tcp/retransmitconnectiondroptime(_:).md)
- [retransmitFinDrop(_:)](network/tcp/retransmitfindrop(_:).md)

## Relationships

### Conforms To

- [NetworkProtocolOptions](network/networkprotocoloptions.md)
- [OneToOneProtocol](network/onetooneprotocol.md)
- [StreamProtocol](network/streamprotocol.md)
