Socket SO KEEPALIVE

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

Tells whether the TCP Keep-Alive mechanism is turned on for a socket. TCP Keep-Alive works as described here:

TCP Keep-Alive

All we can do on a Java socket is to turn TCP KeepAlive on or off - apparently on a per-socket based:

void setKeepAlive(boolean);
boolean getKeepAlive();

The KeepAlive parameters can be only set at the operating system level.