comparison src/event/ngx_event.h @ 166:389d7ee9fa60

nginx-0.0.1-2003-10-30-11:51:06 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 30 Oct 2003 08:51:06 +0000
parents 84036764e215
children c42be4185301
comparison
equal deleted inserted replaced
165:894a01c6aea3 166:389d7ee9fa60
59 /* used to detect the stale events in kqueue, rt signals and epoll */ 59 /* used to detect the stale events in kqueue, rt signals and epoll */
60 unsigned instance:1; 60 unsigned instance:1;
61 61
62 /* 62 /*
63 * the event was passed or would be passed to a kernel; 63 * the event was passed or would be passed to a kernel;
64 * aio mode: 1 - the posted aio operation, 64 * in aio mode - operation was posted.
65 * 0 - the complete aio operation or no aio operation.
66 */ 65 */
67 unsigned active:1; 66 unsigned active:1;
68 67
69 /* 68 /* the ready event; in aio mode 0 means that no operation can be posted */
70 * the ready event;
71 * in aio mode "ready" is always set - it makes things simple
72 * to learn whether the aio operation complete use aio_complete flag
73 */
74 unsigned ready:1; 69 unsigned ready:1;
75 unsigned aio_complete:1; 70
71 /* aio operation is complete */
72 unsigned complete:1;
76 73
77 unsigned eof:1; 74 unsigned eof:1;
78 unsigned error:1; 75 unsigned error:1;
79 76
80 unsigned timedout:1; 77 unsigned timedout:1;
87 unsigned ignore_econnreset:1; 84 unsigned ignore_econnreset:1;
88 unsigned unexpected_eof:1; 85 unsigned unexpected_eof:1;
89 86
90 unsigned deferred_accept:1; 87 unsigned deferred_accept:1;
91 88
89 /* TODO: aio_eof and kq_eof can be the single pending_eof */
90 /* the pending eof in aio chain operation */
91 unsigned aio_eof:1;
92
93 /* the pending eof reported by kqueue */
94 unsigned kq_eof:1;
95
92 #if (WIN32) 96 #if (WIN32)
97 /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was succesfull */
93 unsigned accept_context_updated:1; 98 unsigned accept_context_updated:1;
94 #endif 99 #endif
95 100
96 #if (HAVE_KQUEUE) 101 #if (HAVE_KQUEUE)
97 unsigned kq_eof:1; 102 /* the pending errno reported by kqueue */
98 int kq_errno; 103 int kq_errno;
99 #endif 104 #endif
100 105
101 #if (HAVE_LOWAT_EVENT) /* kqueue's NOTE_LOWAT */ 106 #if (HAVE_LOWAT_EVENT) /* kqueue's NOTE_LOWAT */
102 int lowat; 107 int lowat;