noOptions
TypeScriptget noOptions(): booleanSwift declarationvar noOptions: Bool { get set }A boolean indicating that TCP should use no-options mode (`TCP_NOOPT`).
class · iOS 12.0+ · SDK 27.1
class Optionsget noOptions(): booleanSwift declarationvar noOptions: Bool { get set }A boolean indicating that TCP should use no-options mode (`TCP_NOOPT`).
set noOptions(value: boolean)Swift declarationvar noOptions: Bool { get set }A boolean indicating that TCP should use no-options mode (`TCP_NOOPT`).
get disableECN(): booleanSwift declarationvar disableECN: Bool { get set }A boolean to disable ECN negotiation in TCP.
set disableECN(value: boolean)Swift declarationvar disableECN: Bool { get set }A boolean to disable ECN negotiation in TCP.
get keepaliveIdle(): numberSwift declarationvar keepaliveIdle: Int { get set }The number of seconds of idleness to wait before keepalive probes are sent by TCP (TCP_KEEPALIVE).
set keepaliveIdle(value: number)Swift declarationvar keepaliveIdle: Int { get set }The number of seconds of idleness to wait before keepalive probes are sent by TCP (TCP_KEEPALIVE).
get enableFastOpen(): booleanSwift declarationvar enableFastOpen: Bool { get set }Configure 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.
set enableFastOpen(value: boolean)Swift declarationvar enableFastOpen: Bool { get set }Configure 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.
get keepaliveCount(): numberSwift declarationvar keepaliveCount: Int { get set }The number of keepalive probes to send before terminating the connection (TCP_KEEPCNT).
set keepaliveCount(value: number)Swift declarationvar keepaliveCount: Int { get set }The number of keepalive probes to send before terminating the connection (TCP_KEEPCNT).
get persistTimeout(): numberSwift declarationvar persistTimeout: Int { get set }The TCP persist timeout, in seconds (PERSIST_TIMEOUT). See RFC 6429.
set persistTimeout(value: number)Swift declarationvar persistTimeout: Int { get set }The TCP persist timeout, in seconds (PERSIST_TIMEOUT). See RFC 6429.
get enableKeepalive(): booleanSwift declarationvar enableKeepalive: Bool { get set }A boolean indicating that TCP should send keepalives (SO_KEEPALIVE).
set enableKeepalive(value: boolean)Swift declarationvar enableKeepalive: Bool { get set }A boolean indicating that TCP should send keepalives (SO_KEEPALIVE).
get connectionTimeout(): numberSwift declarationvar connectionTimeout: Int { get set }A timeout for TCP connection establishment, in seconds (TCP_CONNECTIONTIMEOUT).
set connectionTimeout(value: number)Swift declarationvar connectionTimeout: Int { get set }A timeout for TCP connection establishment, in seconds (TCP_CONNECTIONTIMEOUT).
get keepaliveInterval(): numberSwift declarationvar keepaliveInterval: Int { get set }The number of seconds of to wait before resending TCP keepalive probes (TCP_KEEPINTVL).
set keepaliveInterval(value: number)Swift declarationvar keepaliveInterval: Int { get set }The number of seconds of to wait before resending TCP keepalive probes (TCP_KEEPINTVL).
get retransmitFinDrop(): booleanSwift declarationvar retransmitFinDrop: Bool { get set }A boolean to cause TCP to drop its connection after not receiving an ACK after a FIN (TCP_RXT_FINDROP).
set retransmitFinDrop(value: boolean)Swift declarationvar retransmitFinDrop: Bool { get set }A boolean to cause TCP to drop its connection after not receiving an ACK after a FIN (TCP_RXT_FINDROP).
get connectionDropTime(): numberSwift declarationvar connectionDropTime: Int { get set }A timeout for TCP retransmission attempts, in seconds (TCP_RXT_CONNDROPTIME).
set connectionDropTime(value: number)Swift declarationvar connectionDropTime: Int { get set }A timeout for TCP retransmission attempts, in seconds (TCP_RXT_CONNDROPTIME).
get maximumSegmentSize(): numberSwift declarationvar maximumSegmentSize: Int { get set }The maximum segment size in bytes (TCP_MAXSEG).
set maximumSegmentSize(value: number)Swift declarationvar maximumSegmentSize: Int { get set }The maximum segment size in bytes (TCP_MAXSEG).
get disableAckStretching(): booleanSwift declarationvar disableAckStretching: Bool { get set }A boolean to cause TCP to disable ACK stretching (TCP_SENDMOREACKS).
set disableAckStretching(value: boolean)Swift declarationvar disableAckStretching: Bool { get set }A boolean to cause TCP to disable ACK stretching (TCP_SENDMOREACKS).
get noPush(): booleanSwift declarationvar noPush: Bool { get set }A boolean indicating that TCP should use no-push mode (`TCP_NOPUSH`).
set noPush(value: boolean)Swift declarationvar noPush: Bool { get set }A boolean indicating that TCP should use no-push mode (`TCP_NOPUSH`).
get noDelay(): booleanSwift declarationvar noDelay: Bool { get set }A boolean indicating that TCP should disable Nagle's algorithm (TCP_NODELAY).
set noDelay(value: boolean)Swift declarationvar noDelay: Bool { get set }A boolean indicating that TCP should disable Nagle's algorithm (TCP_NODELAY).
static init(): NWProtocolTCP_OptionsSwift declarationinit()Create TCP options to set in an NWParameters.ProtocolStack
No declarations were skipped in this snapshot.