1 /* headers to use the BSD sockets */
11 #define socket_error() WSAGetLastError()
13 #define EWOULDBLOCK WSAEWOULDBLOCK
14 #define EINTR WSAEINTR
15 #define EINPROGRESS WSAEINPROGRESS
19 #include <sys/socket.h>
20 #include <netinet/in.h>
21 #include <netinet/tcp.h>
24 #define socket_error() errno
25 #define closesocket(s) close(s)
29 void socket_set_nonblock(int fd
);
31 int parse_host_port(struct sockaddr_in
*saddr
, const char *str
);
33 #endif /* QEMU_SOCKET_H */