4 #ifdef _WIN32 // <-- source files only include the proper Net*_p.h, but this is a double-check
6 #include <winsock2.h> // <-- should bring 'windows.h' along with it
10 # define BT_SOCKLEN_T int
14 # pragma comment(lib, "ws2_32.lib")
20 // use RAII to ensure WSA is en
21 class WindowsSockInit {
23 WindowsSockInit(void) {
25 WSAStartup(MAKEWORD(2,2), &wsadata); // catch error ?
28 ~WindowsSockInit(void) {
33 } // namespace Internal
34 } // namespace BamTools