mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
comment
This commit is contained in:
parent
0625b97246
commit
6511b6dd5d
@ -629,7 +629,10 @@ struct timeval {
|
|||||||
#define MG_SOCK_RESET(errcode) \
|
#define MG_SOCK_RESET(errcode) \
|
||||||
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
|
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
|
||||||
|
|
||||||
#define MG_SOCK_INTR(fd) 0
|
// In blocking mode, which is enabled by default, accept() waits for a
|
||||||
|
// connection request. In non blocking mode, you must call accept()
|
||||||
|
// again if the error code BSD_EWOULDBLOCK is returned.
|
||||||
|
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
|
||||||
|
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
#endif
|
#endif
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
#define MG_SOCK_RESET(errcode) \
|
#define MG_SOCK_RESET(errcode) \
|
||||||
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
|
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
|
||||||
|
|
||||||
|
// In blocking mode, which is enabled by default, accept() waits for a
|
||||||
|
// connection request. In non blocking mode, you must call accept()
|
||||||
|
// again if the error code BSD_EWOULDBLOCK is returned.
|
||||||
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
|
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
|
||||||
|
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user