- Timestamp:
- 2005-12-17T01:25:58Z (18 years ago)
- Branches:
- master
- Children:
- e3fb678
- Parents:
- 4146a07 (diff), 32c632f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sock.h
r4146a07 r643dfc4 6 6 #include <netdb.h> 7 7 #define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK) 8 #define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0) 8 9 #define sockerr_again() (errno == EINPROGRESS || errno == EINTR) 9 10 #define closesocket(a) close(a) … … 17 18 # define write(a,b,c) send(a,b,c,0) 18 19 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } 20 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); } 19 21 # define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK) 20 22 # define ETIMEDOUT WSAETIMEDOUT
Note: See TracChangeset
for help on using the changeset viewer.