2005-02-20 14:27:00 +00:00
|
|
|
#ifndef WIN32_SOCKET_H
|
|
|
|
#define WIN32_SOCKET_H
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
#ifdef __WIN32
|
|
|
|
|
|
|
|
#include <winsock2.h>
|
|
|
|
|
|
|
|
#define ECONNRESET WSAECONNRESET
|
|
|
|
#define EINPROGRESS WSAEINPROGRESS
|
|
|
|
#define EALREADY WSAEALREADY
|
2007-04-09 20:31:03 +00:00
|
|
|
#define ECONNABORTED WSAECONNABORTED
|
2005-02-20 14:27:00 +00:00
|
|
|
#define ioctl ioctlsocket
|
|
|
|
#define hstrerror(x) ""
|
|
|
|
#else
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <sys/un.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
|
|
|
|
#include <netdb.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|