comparison src/event/ngx_event.h @ 261:bdd631bf1a1c

nginx-0.0.2-2004-02-18-00:11:27 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 17 Feb 2004 21:11:27 +0000
parents d30f2c39caae
children 8c5bdde0d9f0
comparison
equal deleted inserted replaced
260:5dacbb4daaf6 261:bdd631bf1a1c
161 161
162 int (*enable)(ngx_event_t *ev, int event, u_int flags); 162 int (*enable)(ngx_event_t *ev, int event, u_int flags);
163 int (*disable)(ngx_event_t *ev, int event, u_int flags); 163 int (*disable)(ngx_event_t *ev, int event, u_int flags);
164 164
165 int (*add_conn)(ngx_connection_t *c); 165 int (*add_conn)(ngx_connection_t *c);
166 int (*del_conn)(ngx_connection_t *c); 166 int (*del_conn)(ngx_connection_t *c, u_int flags);
167 167
168 int (*process)(ngx_log_t *log); 168 int (*process)(ngx_log_t *log);
169 int (*init)(ngx_cycle_t *cycle); 169 int (*init)(ngx_cycle_t *cycle);
170 void (*done)(ngx_cycle_t *cycle); 170 void (*done)(ngx_cycle_t *cycle);
171 } ngx_event_actions_t; 171 } ngx_event_actions_t;
214 * No need to add or delete the event filters - rt signals. 214 * No need to add or delete the event filters - rt signals.
215 */ 215 */
216 #define NGX_USE_SIGIO_EVENT 0x00000040 216 #define NGX_USE_SIGIO_EVENT 0x00000040
217 217
218 /* 218 /*
219 * The alternative event method after the rt signals queue overflow.
220 */
221 #define NGX_OVERFLOW_EVENT 0x00000080
222
223 /*
219 * No need to add or delete the event filters - overlapped, aio_read, 224 * No need to add or delete the event filters - overlapped, aio_read,
220 * aioread, io_submit. 225 * aioread, io_submit.
221 */ 226 */
222 #define NGX_USE_AIO_EVENT 0x00000080 227 #define NGX_USE_AIO_EVENT 0x00000100
223 228
224 /* 229 /*
225 * Need to add socket or handle only once - i/o completion port. 230 * Need to add socket or handle only once - i/o completion port.
226 * It also requires HAVE_AIO and NGX_USE_AIO_EVENT to be set. 231 * It also requires HAVE_AIO and NGX_USE_AIO_EVENT to be set.
227 */ 232 */
228 #define NGX_USE_IOCP_EVENT 0x00000100 233 #define NGX_USE_IOCP_EVENT 0x00000200
229 234
230 235
231 236
232 /* 237 /*
233 * The event filter is deleted before the closing file. 238 * The event filter is deleted before the closing file.