1 #ifndef TCPIP_DEFINITIONS_GROUP
2 #define TCPIP_DEFINITIONS_GROUP
25 #define SOCKET_ERROR -1
28 #ifndef INVALID_SOCKET
29 #define INVALID_SOCKET -1
39 #define SOCK_EACCES EACCES
40 #define SOCK_EADDRINUSE EADDRINUSE
41 #define SOCK_EADDRNOTAVAIL EADDRNOTAVAIL
42 #define SOCK_EAFNOSUPPORT EAFNOSUPPORT
43 #define SOCK_EALREADY EALREADY
44 #define SOCK_EBADF EBADF
45 #define SOCK_ECONNABORTED ECONNABORTED
46 #define SOCK_ECONNREFUSED ECONNREFUSED
47 #define SOCK_ECONNRESET ECONNRESET
48 #define SOCK_EDESTADDRREQ EDESTADDRREQ
49 #define SOCK_EDQUOT EDQUOT
50 #define SOCK_EFAULT EFAULT
51 #define SOCK_EHOSTDOWN EHOSTDOWN
52 #define SOCK_EHOSTUNREACH EHOSTUNREACH
53 #define SOCK_EINPROGRESS EINPROGRESS
54 #define SOCK_EINTR EINTR
55 #define SOCK_EINVAL EINVAL
56 #define SOCK_EISCONN EISCONN
57 #define SOCK_ELOOP ELOOP
58 #define SOCK_EMFILE EMFILE
59 #define SOCK_EMSGSIZE EMSGSIZE
60 #define SOCK_ENAMETOOLONG ENAMETOOLONG
61 #define SOCK_ENETDOWN ENETDOWN
62 #define SOCK_ENETUNREACH ENETUNREACH
63 #define SOCK_ENETRESET ENETRESET
64 #define SOCK_ENOBUFS ENOBUFS
65 #define SOCK_ENOPROTOOPT ENOPROTOOPT
66 #define SOCK_ENOTCONN ENOTCONN
67 #define SOCK_ENOTEMPTY ENOTEMPTY
68 #define SOCK_ENOTSOCK ENOTSOCK
69 #define SOCK_EOPNOTSUPP EOPNOTSUPP
70 #define SOCK_EPFNOSUPPORT EPFNOSUPPORT
71 #define SOCK_EPROCLIM EPROCLIM
72 #define SOCK_EPROTOTYPE EPROTOTYPE
73 #define SOCK_EPROTONOSUPPORT EPROTONOSUPPORT
74 #define SOCK_EREMOTE EREMOTE
75 #define SOCK_ESHUTDOWN ESHUTDOWN
76 #define SOCK_ESOCKTNOSUPPORT ESOCKTNOSUPPORT
77 #define SOCK_ESTALE ESTALE
78 #define SOCK_ETIMEDOUT ETIMEDOUT
79 #define SOCK_ETOOMANYREFS ETOOMANYREFS
80 #define SOCK_EWOULDBLOCK EWOULDBLOCK
81 #define SOCK_EUSERS EUSERS
Aids in achievement of platform independence.