MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / SetReusePort

Method SetReusePort

net/win/SocketBase.cpp:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void cppnet::SetReusePort(const uint64_t& sock) {
41 int opt = 1;
42 int ret = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt, sizeof(opt));
43}
44
45bool InitScoket() {
46 static WSADATA __wsa_data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected