MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / WinsockInitialization

Method WinsockInitialization

Win32Lib/Socket.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace Win32 {
14
15WinsockInitialization::WinsockInitialization(int major, int minor)
16{
17 WSADATA wsaData = { 0 };
18 int rc = WSAStartup(MAKEWORD(major, minor), &wsaData);
19 if (rc != 0)
20 ThrowWin32Error(rc, "WSAStartup");
21}
22
23WinsockInitialization::~WinsockInitialization()
24{

Callers

nothing calls this directly

Calls 1

ThrowWin32ErrorFunction · 0.85

Tested by

no test coverage detected