Loading...
Searching...
No Matches
5#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
6#define _WINSOCK_DEPRECATED_NO_WARNINGS
8#if !defined(_WINSOCK2API_)
10#error <winsock.h> has been included before <winsock2.h>
17#include <sys/socket.h>
19#include <netinet/in.h>
20#include <netinet/ip.h>
22#include <netinet/tcp.h>
27#define ioctlsocket ioctl
28inline int WSAGetLastError () {
return errno;}
32typedef struct hostent HOSTENT;
33#define INVALID_HANDLE ((HANDLE)(-1))
34#define INVALID_HANDLE_VALUE ((HANDLE)(std::intptr_t) - 1)
35#define INVALID_SOCKET (-1)
36#define SOCKET_ERROR (-1)
37#define WSAENOTSOCK ENOTSOCK
38#define WSAETIMEDOUT ETIMEDOUT
39#define WSAEINPROGRESS EINPROGRESS
40#define WSAEWOULDBLOCK EWOULDBLOCK
41#define WSAECONNABORTED ECONNABORTED
42#define WSAECONNRESET ECONNRESET
43#define WSAESHUTDOWN ESHUTDOWN
44#define WSAHOST_NOT_FOUND HOST_NOT_FOUND
45#define WSANO_DATA NO_DATA
46#define WSANO_RECOVERY NO_RECOVERY
47#define WSATRY_AGAIN TRY_AGAIN