2011-01-04 17:03:13 +01:00
|
|
|
#ifndef foopulsecoresockethfoo
|
|
|
|
|
#define foopulsecoresockethfoo
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
#endif
|
2006-01-10 17:51:06 +00:00
|
|
|
|
|
|
|
|
#ifdef HAVE_WINSOCK2_H
|
|
|
|
|
#include <winsock2.h>
|
|
|
|
|
|
|
|
|
|
#define ESHUTDOWN WSAESHUTDOWN
|
|
|
|
|
#define ECONNRESET WSAECONNRESET
|
|
|
|
|
#define ECONNABORTED WSAECONNABORTED
|
|
|
|
|
#define ENETRESET WSAENETRESET
|
|
|
|
|
#define EINPROGRESS WSAEINPROGRESS
|
|
|
|
|
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
|
|
|
|
#define ETIMEDOUT WSAETIMEDOUT
|
|
|
|
|
#define ECONNREFUSED WSAECONNREFUSED
|
|
|
|
|
#define EHOSTUNREACH WSAEHOSTUNREACH
|
2006-04-19 11:56:26 +00:00
|
|
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
2011-01-04 17:03:13 +01:00
|
|
|
#define EADDRINUSE WSAEADDRINUSE
|
2006-01-10 17:51:06 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
typedef long suseconds_t;
|
|
|
|
|
|
2006-01-10 17:51:06 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_WS2TCPIP_H
|
|
|
|
|
#include <ws2tcpip.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|