#ifndef WIN32_SOCKET_H #define WIN32_SOCKET_H #ifdef __WIN32 #include #define ECONNRESET WSAECONNRESET #define EINPROGRESS WSAEINPROGRESS #define EALREADY WSAEALREADY #define ioctl ioctlsocket #define hstrerror(x) "" #else #include #include #include #include #include #include #include #endif #endif