MCPcopy Create free account
hub / github.com/Kitware/CMake / init

Function init

Utilities/cmcppdap/src/socket.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace {
45constexpr SOCKET InvalidSocket = static_cast<SOCKET>(-1);
46void init() {
47#if defined(_WIN32)
48 if (wsaInitCount++ == 0) {
49 WSADATA winsockData;
50 (void)WSAStartup(MAKEWORD(2, 2), &winsockData);
51 }
52#endif
53}
54
55void term() {
56#if defined(_WIN32)

Callers 6

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
onceFunction · 0.85
createMethod · 0.85
acceptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…