MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / InitializeWinsock

Function InitializeWinsock

pcsx2/PINE.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#ifdef _WIN32
73
74static bool InitializeWinsock()
75{
76 static bool initialized = false;
77 if (initialized)
78 return true;
79
80 WSADATA wsa = {};
81 if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0)
82 return false;
83
84 initialized = true;
85 std::atexit([]() { WSACleanup(); });
86 return true;
87}
88
89#endif
90

Callers 1

InitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected