9 #define ECONNRESET WSAECONNRESET
10 #define EINPROGRESS WSAEINPROGRESS
11 #define EALREADY WSAEALREADY
12 #define ECONNABORTED WSAECONNABORTED
16 #include <sys/socket.h>
17 #include <netinet/in.h>
18 #include <netinet/tcp.h>
26 #ifndef INET_ADDRSTRLEN
27 #define INET_ADDRSTRLEN 16
29 #ifndef INET6_ADDRSTRLEN
30 #define INET6_ADDRSTRLEN 46
33 #define UNIX_PATH_MAX 108
36 /* for solaris 2.5 and NetBSD 1.3.x */
37 #ifndef HAVE_SOCKLEN_T
38 typedef int socklen_t
;