mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-14 19:03:20 +00:00
2 files changed
+7
-1
No files matched your search
+4
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user