Go to the documentation of this file. 1 #ifndef XMMSC_SOCKETS_H
2 #define XMMSC_SOCKETS_H
11 typedef int socklen_t;
12 #define XMMS_EINTR WSAEINTR
13 #define XMMS_EAGAIN WSAEWOULDBLOCK
14 #define XMMS_EINPROGRESS WSAEINPROGRESS
17 #define SOCKET_ERROR (-1)
18 #define XMMS_EINTR EINTR
19 #define XMMS_EINPROGRESS EINPROGRESS
22 #define XMMS_EAGAIN EAGAIN
24 #define XMMS_EAGAIN EWOULDBLOCK
26 #include <sys/types.h>
27 #include <sys/socket.h>
28 #include <sys/select.h>
30 #include <netinet/in.h>
31 #include <netinet/tcp.h>
32 #include <arpa/inet.h>
48 const struct addrinfo *hints,
struct addrinfo **res);