MCPcopy Create free account
hub / github.com/FastLED/FastLED / initialize_winsock

Function initialize_winsock

src/platforms/win/socket_win.cpp.hpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92//=============================================================================
93
94bool initialize_winsock() FL_NOEXCEPT {
95 static bool initialized = false;
96 if (!initialized) {
97 WSADATA wsaData;
98 int result = WSAStartup(MAKEWORD(2, 2), &wsaData);
99 initialized = (result == 0);
100 }
101 return initialized;
102}
103
104void cleanup_winsock() FL_NOEXCEPT {
105 WSACleanup();

Callers 3

connectMethod · 0.85
openMethod · 0.85
socketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected