source:
sock.h
@
e7434db
Last change on this file since e7434db was 56c8a4f, checked in by , at 2015-06-04T17:13:22Z | |
---|---|
|
|
File size: 377 bytes |
Line | |
---|---|
1 | #include <errno.h> |
2 | #include <fcntl.h> |
3 | |
4 | #include <unistd.h> |
5 | #include <sys/socket.h> |
6 | #include <netinet/in.h> |
7 | #include <arpa/inet.h> |
8 | #include <netdb.h> |
9 | #define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK) |
10 | #define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0) |
11 | #define sockerr_again() (errno == EINPROGRESS || errno == EINTR || errno == EAGAIN) |
12 | void closesocket(int fd); |
Note: See TracBrowser
for help on using the repository browser.