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

Method getLinger

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

Source from the content-addressed store, hash-verified

53 setOption<struct linger>(ex,SOL_SOCKET, SO_LINGER, l);
54 }
55 bool getLinger(Exception& ex, int& seconds) const {
56 struct linger l;
57 getOption<struct linger>(ex, SOL_SOCKET, SO_LINGER, l);
58 seconds = l.l_linger;
59 return l.l_onoff != 0;
60 }
61
62
63 void setReusePort(bool flag) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected