Windows Notes - adedov/libiqxmlrpc GitHub Wiki

WinSock Initialisation

Library does not initialise WinSocket subsystem as it should be done by application. Here is sample code that could be used before working with network sockets on Windows:

#if defined(WIN32)
        WORD wVersionRequested;
        WSADATA wsaData;
        wVersionRequested = MAKEWORD(2, 2);
        WSAStartup(wVersionRequested, &wsaData);
#endif