MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / WSInit

Method WSInit

examples/server/httplib.h:4903–4906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4901class WSInit {
4902public:
4903 WSInit() {
4904 WSADATA wsaData;
4905 if (WSAStartup(0x0002, &wsaData) == 0) is_valid_ = true;
4906 }
4907
4908 ~WSInit() {
4909 if (is_valid_) WSACleanup();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected