1 /* include stuff for internet */
5 #include <sys/socket.h>
8 #include <netinet/in.h>
14 #define closesocket close
15 #define set_blocking(sok) fcntl(sok, F_SETFL, 0)
16 #define set_nonblocking(sok) fcntl(sok, F_SETFL, O_NONBLOCK)
17 #define would_block() (errno == EAGAIN || errno == EWOULDBLOCK)
18 #define sock_error() (errno)