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

Method setNoDelay

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

Source from the content-addressed store, hash-verified

35 int getReceiveBufferSize(Exception& ex) const { return getOption(ex,SOL_SOCKET, SO_RCVBUF); }
36
37 void setNoDelay(Exception& ex, bool flag) { setOption(ex,IPPROTO_TCP, TCP_NODELAY, flag ? 1 : 0); }
38 bool getNoDelay(Exception& ex) const { return getOption(ex, IPPROTO_TCP, TCP_NODELAY) != 0; }
39
40 void setKeepAlive(Exception& ex, bool flag) { setOption(ex, SOL_SOCKET, SO_KEEPALIVE, flag ? 1 : 0); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected