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

Method setReusePort

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

Source from the content-addressed store, hash-verified

61
62
63 void setReusePort(bool flag) {
64#ifdef SO_REUSEPORT
65 Exception ex; // ignore error, since not all implementations support SO_REUSEPORT, even if the macro is defined
66 setOption(ex,SOL_SOCKET, SO_REUSEPORT, flag ? 1 : 0);
67#endif
68 }
69 bool getReusePort() const {
70#ifdef SO_REUSEPORT
71 Exception ex;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected