vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function EventDriverSockets.setKeepAliveParams

Enables keepalive for the TCP socket and sets additional parameters. Silently ignores unsupported systems (anything but Windows and Linux).

abstract void setKeepAliveParams (
  StreamSocketFD socket,
  core.time.Duration idle,
  core.time.Duration interval,
  int probeCount = 5
) nothrow @safe;

Parameters

NameDescription
socket Socket file descriptor to set options on.
idle The time the connection needs to remain idle before TCP starts sending keepalive probes.
interval The time between individual keepalive probes.
probeCount The maximum number of keepalive probes TCP should send before dropping the connection. Has no effect on Windows.
Authors
Copyright
License