The OpenD Programming Language

Socket.setKeepAlive

Enables TCP keep-alive with the specified parameters.

class Socket
@trusted
void
setKeepAlive
(
int time
,)

Parameters

time int

Number of seconds with no activity until the first keep-alive packet is sent.

interval int

Number of seconds between when successive keep-alive packets are sent if no acknowledgement is received.

Throws

SocketOSException if setting the options fails, or SocketFeatureException if setting keep-alive parameters is unsupported on the current platform.

Meta