MCPcopy Create free account
hub / github.com/crossuo/crossuo / socket_init

Function socket_init

src/Sockets.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool socket_init()
107{
108 if (!wsa_initialized)
109 {
110 WSADATA wsaData = { 0 };
111 wsa_initialized = !WSAStartup(MAKEWORD(2, 2), &wsaData);
112 }
113 return wsa_initialized;
114}
115
116void socket_shutdown()
117{

Callers 2

tcp_openFunction · 0.85
icmp_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected