MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / getKeepAlive

Method getKeepAlive

MonaBase/sources/Socket.cpp:41–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40 void setKeepAlive(Exception& ex, bool flag) { setOption(ex, SOL_SOCKET, SO_KEEPALIVE, flag ? 1 : 0); }
41 bool getKeepAlive(Exception& ex) const { return getOption(ex,SOL_SOCKET, SO_KEEPALIVE) != 0; }
42
43 void setReuseAddress(Exception& ex, bool flag) { setOption(ex, SOL_SOCKET, SO_REUSEADDR, flag ? 1 : 0); }
44 bool getReuseAddress(Exception& ex) const { return getOption(ex, SOL_SOCKET, SO_REUSEADDR) != 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected