MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SetupNetworking

Function SetupNetworking

src/common/system.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool SetupNetworking()
98{
99#ifdef WIN32
100 // Initialize Windows Sockets
101 WSADATA wsadata;
102 int ret = WSAStartup(MAKEWORD(2,2), &wsadata);
103 if (ret != NO_ERROR || LOBYTE(wsadata.wVersion ) != 2 || HIBYTE(wsadata.wVersion) != 2)
104 return false;
105#endif
106 return true;
107}
108
109int GetNumCores()
110{

Callers 3

bitcoin-cli.cppFile · 0.85
AppInitBasicSetupFunction · 0.85
NetworkSetupMethod · 0.85

Calls

no outgoing calls

Tested by 1

NetworkSetupMethod · 0.68