SocketOSException if setting the options fails, or
SocketFeatureException if setting keep-alive parameters is unsupported on the current platform.
void setKeepAlive(int time, int interval) @trustedEnables TCP keep-alive with the specified parameters.
time | Number of seconds with no activity until the first keep-alive packet is sent. |
interval | Number of seconds between when successive keep-alive packets are sent if no acknowledgement is received. |
SocketOSException if setting the options fails, or
SocketFeatureException if setting keep-alive parameters is unsupported on the current platform.