keepAlive (property)
When True, KEEPALIVE packets are enabled (for long connections).
Syntax
@property (nonatomic,readwrite,assign,getter=keepAlive,setter=setKeepAlive:) BOOL keepAlive; - (BOOL)keepAlive; - (void)setKeepAlive:(BOOL)newKeepAlive;
public var keepAlive: Bool { get {...}
set {...} }
Default Value
FALSE
Remarks
The KeepAlive enables the SO_KEEPALIVE option on the socket. This option prevents long connections from timing out in case of inactivity.
Please note that system TCP/IP stack implementations are not required to support SO_KEEPALIVE.