MCPcopy Create free account
hub / github.com/acl-dev/acl / InitSocket

Function InitSocket

lib_fiber/samples-gui/SimpleWin/SimpleWin.cpp:88–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static bool InitSocket(void)
89{
90 WORD version = 0;
91 WSADATA data;
92
93 FillMemory(&data, sizeof(WSADATA), 0);
94
95 version = MAKEWORD(2, 0);
96
97 if (WSAStartup(version, &data) != 0) {
98 return false;
99 }
100 if (LOBYTE(data.wVersion) != 2 || HIBYTE(data.wVersion) != 0) {
101 WSACleanup();
102 return false;
103 }
104
105 return true;
106}
107
108//
109// 函数: InitInstance(HINSTANCE, int)

Callers 1

InitInstanceFunction · 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…