MCPcopy Create free account
hub / github.com/chrxh/alien / WSInit

Method WSInit

external/cpp-httplib/httplib.h:4290–4293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4288 class WSInit {
4289 public:
4290 WSInit() {
4291 WSADATA wsaData;
4292 if (WSAStartup(0x0002, &wsaData) == 0) is_valid_ = true;
4293 }
4294
4295 ~WSInit() {
4296 if (is_valid_) WSACleanup();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected