---
title: TCP Options
framework: network
role: collectionGroup
role_heading: API Collection
path: network/tcp-options
---

# TCP Options

Configure options for connections that use the Transmission Control Protocol.

## Topics

### Creating TCP Connections

- [nw_protocol_copy_tcp_definition()](network/nw_protocol_copy_tcp_definition().md)
- [nw_tcp_create_options()](network/nw_tcp_create_options().md)

### Customizing TCP Options

- [nw_tcp_options_set_enable_fast_open(_:_:)](network/nw_tcp_options_set_enable_fast_open(_:_:).md)
- [nw_tcp_options_set_maximum_segment_size(_:_:)](network/nw_tcp_options_set_maximum_segment_size(_:_:).md)
- [nw_tcp_options_set_no_delay(_:_:)](network/nw_tcp_options_set_no_delay(_:_:).md)
- [nw_tcp_options_set_no_options(_:_:)](network/nw_tcp_options_set_no_options(_:_:).md)
- [nw_tcp_options_set_no_push(_:_:)](network/nw_tcp_options_set_no_push(_:_:).md)
- [nw_tcp_options_set_retransmit_fin_drop(_:_:)](network/nw_tcp_options_set_retransmit_fin_drop(_:_:).md)
- [nw_tcp_options_set_disable_ack_stretching(_:_:)](network/nw_tcp_options_set_disable_ack_stretching(_:_:).md)
- [nw_tcp_options_set_disable_ecn(_:_:)](network/nw_tcp_options_set_disable_ecn(_:_:).md)

### Configuring Keepalives

- [nw_tcp_options_set_enable_keepalive(_:_:)](network/nw_tcp_options_set_enable_keepalive(_:_:).md)
- [nw_tcp_options_set_keepalive_idle_time(_:_:)](network/nw_tcp_options_set_keepalive_idle_time(_:_:).md)
- [nw_tcp_options_set_keepalive_count(_:_:)](network/nw_tcp_options_set_keepalive_count(_:_:).md)
- [nw_tcp_options_set_keepalive_interval(_:_:)](network/nw_tcp_options_set_keepalive_interval(_:_:).md)

### Setting Timeouts

- [nw_tcp_options_set_connection_timeout(_:_:)](network/nw_tcp_options_set_connection_timeout(_:_:).md)
- [nw_tcp_options_set_retransmit_connection_drop_time(_:_:)](network/nw_tcp_options_set_retransmit_connection_drop_time(_:_:).md)
- [nw_tcp_options_set_persist_timeout(_:_:)](network/nw_tcp_options_set_persist_timeout(_:_:).md)

### Inspecting TCP State

- [nw_protocol_metadata_is_tcp(_:)](network/nw_protocol_metadata_is_tcp(_:).md)
- [nw_tcp_get_available_send_buffer(_:)](network/nw_tcp_get_available_send_buffer(_:).md)
- [nw_tcp_get_available_receive_buffer(_:)](network/nw_tcp_get_available_receive_buffer(_:).md)

## See Also

### Network Protocols

- [TLS Options](network/tls-options.md)
- [QUIC Options](network/quic-options.md)
- [UDP Options](network/udp-options.md)
- [IP Options](network/ip-options.md)
- [WebSocket Options](network/websocket-options.md)
- [Framer Protocol Options](network/framer-protocol-options.md)
