#pragma once #include "precomp.hpp" #include "Socket/Log.hpp" #ifdef _WIN32 namespace Chattr { struct WSAManager { WSAManager() { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) log::critical("WSAStartup()"); } ~WSAManager() { WSACleanup(); } }; } #endif