/* */ #ifdef HAVE_CONFIG_H # include "config.h" #endif // HAVE_CONFIG_H #ifdef HAVE_WINSOCK2_H #ifndef _WIN32_WINNT # define _WIN32_WINNT 0x501 #endif // _WIN32_WINNT #include #undef ERROR #ifdef HAVE_WS2TCPIP_H # include #endif // HAVE_WS2TCPIP_H #include "common.h" #include "DlAbortEx.h" #include "Platform.h" Platform::Platform() { WSADATA wsaData; memset((char*)&wsaData, 0, sizeof(wsaData)); if (WSAStartup(MAKEWORD(1, 1), &wsaData)) { throw new DlAbortEx(_("Windows socket library initialization failed")); } } Platform::~Platform() { WSACleanup(); } #endif // HAVE_WINSOCK2_H