MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / WSInit

Method WSInit

external/httplib.h:5448–5451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5446class WSInit {
5447public:
5448 WSInit() {
5449 WSADATA wsaData;
5450 if (WSAStartup(0x0002, &wsaData) == 0) is_valid_ = true;
5451 }
5452
5453 ~WSInit() {
5454 if (is_valid_) WSACleanup();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected