Socket.keepalive

bool keepalive() @property nothrow

Get keepalive property.

Returns

Whether to keep the connection alive by sending periodic pings.
void keepalive(bool propval) @property nothrow

Set keepalive property.

Parameters

propvalWhether to keep the connection alive by sending periodic pings.