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

Function SetReusePort

util/network/socket.cpp:319–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void SetReusePort(SOCKET s, bool value) {
320#if defined(_unix_)
321 CheckedSetSockOpt(s, SOL_SOCKET, SO_REUSEPORT, (int)value, "reuse port");
322#else
323 Y_UNUSED(s);
324 Y_UNUSED(value);
325 ythrow TSystemError(ENOSYS) << "SO_REUSEPORT is not available on Windows";
326#endif
327}
328
329void SetNoDelay(SOCKET s, bool value) {
330 CheckedSetSockOpt(s, IPPROTO_TCP, TCP_NODELAY, (int)value, "tcp no delay");

Callers 2

TOneSocketListenerMethod · 0.85
TryToBindAddressesFunction · 0.85

Calls 2

CheckedSetSockOptFunction · 0.85
Y_UNUSEDFunction · 0.85

Tested by

no test coverage detected