MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / InitNetwork

Function InitNetwork

cpp/src/platform/HttpClient.cpp:213–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool InitNetwork
214(
215)
216{
217#ifdef _WIN32
218 WSADATA wsadata;
219 if(WSAStartup(MAKEWORD(2,2), &wsadata))
220 {
221 traceprint("WSAStartup ERROR: %s", _GetErrorStr(_GetError()).c_str());
222 return false;
223 }
224#endif
225 return true;
226}
227
228void StopNetwork
229(

Callers 1

HttpThreadProcMethod · 0.85

Calls 3

_GetErrorStrFunction · 0.85
_GetErrorFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected