MCPcopy Create free account
hub / github.com/catboost/catboost / SetLinger

Function SetLinger

util/network/socket.cpp:295–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void SetLinger(SOCKET s, bool on, unsigned len) {
296#ifdef SO_LINGER
297 struct linger l = {on, (u_short)len};
298
299 CheckedSetSockOpt(s, SOL_SOCKET, SO_LINGER, l, "linger");
300#endif
301}
302
303void SetZeroLinger(SOCKET s) {
304 SetLinger(s, 1, 0);

Callers 2

SetLingerMethod · 0.85
SetZeroLingerFunction · 0.85

Calls 1

CheckedSetSockOptFunction · 0.85

Tested by

no test coverage detected