ecnDisabled
TypeScriptecnDisabled(disableECN: boolean): TCPSwift declarationfunc ecnDisabled(_ disableECN: Bool) -> TCPDisable ECN negotiation. - Parameter disableECN: True to disable ECN, false otherwise.
struct · iOS 26.0+ · SDK 27.1
struct TCPThe system definition of the Transmission Control Protocol (TCP). Supports sending and receiving byte streams.
ecnDisabled(disableECN: boolean): TCPSwift declarationfunc ecnDisabled(_ disableECN: Bool) -> TCPDisable ECN negotiation. - Parameter disableECN: True to disable ECN, false otherwise.
persistTimeout(timeout: number): TCPSwift declarationfunc persistTimeout(_ timeout: UInt32) -> TCPSet the TCP persist timeout. The TCP persist timeout, in seconds (`PERSIST_TIMEOUT`). See RFC 6429. - Parameter timeout: The persist timeout, in seconds.
fastOpenAllowed(allowed: boolean): TCPSwift declarationfunc fastOpenAllowed(_ allowed: Bool) -> TCPConfigure TCP to enable TCP Fast Open (TFO). This may take effect even when TCP is not the top-level protocol in the protocol stack. For example, if TLS is running over TCP, the Client Hello message may be sent as fast open data. If TCP is the top-level protocol in the stack (the one the application directly interacts with), TFO will be disabled unless the application indicated that it will provide its own fast open data by calling NWParameters.allowFastOpen. - Parameter allowed: True to allow TFO, false otherwise.
connectionTimeout(timeout: number): TCPSwift declarationfunc connectionTimeout(_ timeout: UInt32) -> TCPSet the timeout for TCP connection establishment. A timeout for TCP connection establishment, in seconds. (`TCP_CONNECTIONTIMEOUT`). - Parameter timeout: The connection establishment timeout, in seconds.
retransmitFinDrop(drop: boolean): TCPSwift declarationfunc retransmitFinDrop(_ drop: Bool) -> TCPConfigure TCP to drop the connection after a FIN does not receive an ACK. A boolean to cause TCP to drop its connection after not receiving an ACK after a FIN (`TCP_RXT_FINDROP`). - Parameter drop: True to drop, false otherwise.
maximumSegmentSize(bytes: number): TCPSwift declarationfunc maximumSegmentSize(_ bytes: UInt32) -> TCPSet maximum segment size. The maximum segment size in bytes (`TCP_MAXSEG`). - Parameter bytes: The maximum segment size in bytes.
ackStretchingDisabled(disableAckStretching: boolean): TCPSwift declarationfunc ackStretchingDisabled(_ disableAckStretching: Bool) -> TCPDisable ACK stretching. A boolean to cause TCP to disable ACK stretching (`TCP_SENDMOREACKS`). - Parameter disableAckStretching: True to disable ACK stretching, false otherwise.
retransmitConnectionDropTime(timeout: number): TCPSwift declarationfunc retransmitConnectionDropTime(_ timeout: UInt32) -> TCPSet the TCP retransmission attempt timeout. A timeout for TCP retransmission attempts, in seconds (`TCP_RXT_CONNDROPTIME`). - Parameter timeout: The retransmission attempt timeout, in seconds.
noPush(noPush: boolean): TCPSwift declarationfunc noPush(_ noPush: Bool) -> TCPEnable no-push mode. A boolean indicating that TCP should use no-push mode (`TCP_NOPUSH`). - Parameter noPush: True to use no-push mode, false otherwise.
noDelay(noDelay: boolean): TCPSwift declarationfunc noDelay(_ noDelay: Bool) -> TCPDisable Nagle's algorithm. A boolean indicating that TCP should disable Nagle's algorithm (`TCP_NODELAY`). - Parameter noDelay: True to disable Nagle's algorithm, false otherwise.
keepalive(idleTimeInSeconds: number, count: number, intervalInSeconds: number): TCPSwift declarationfunc keepalive(idleTimeInSeconds: UInt32, count: UInt32, intervalInSeconds: UInt32) -> TCPEnable TCP keepalives. - Parameter idleTimeInSeconds: The number of seconds of idleness to wait before keepalive probes are sent by TCP (`TCP_KEEPALIVE`). - Parameter count: The number of keepalive probes to send before terminating. - Parameter intervalInSeconds: The number of seconds of to wait before resending TCP keepalive probes (`TCP_KEEPINTVL`).
noOptions(noOptions: boolean): TCPSwift declarationfunc noOptions(_ noOptions: Bool) -> TCPEnable no-options mode. A boolean indicating that TCP should use no-options mode (`TCP_NOOPT`). - Parameter noOptions: True to use no-options mode, false otherwise.
static init(): TCPSwift declarationinit()Create an instance of TCP.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
TCP.init(_:)
callback cannot propagate synchronous failure