comparison src/event/ngx_event.h @ 356:2e3cbc1bbe3c

nginx-0.0.7-2004-06-16-19:32:11 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 16 Jun 2004 15:32:11 +0000
parents eaf1f651cf86
children 446782c909b3
comparison
equal deleted inserted replaced
355:0fb6c53fb135 356:2e3cbc1bbe3c
175 #endif 175 #endif
176 }; 176 };
177 177
178 178
179 typedef struct { 179 typedef struct {
180 int (*add)(ngx_event_t *ev, int event, u_int flags); 180 ngx_int_t (*add)(ngx_event_t *ev, int event, u_int flags);
181 int (*del)(ngx_event_t *ev, int event, u_int flags); 181 ngx_int_t (*del)(ngx_event_t *ev, int event, u_int flags);
182 182
183 int (*enable)(ngx_event_t *ev, int event, u_int flags); 183 ngx_int_t (*enable)(ngx_event_t *ev, int event, u_int flags);
184 int (*disable)(ngx_event_t *ev, int event, u_int flags); 184 ngx_int_t (*disable)(ngx_event_t *ev, int event, u_int flags);
185 185
186 int (*add_conn)(ngx_connection_t *c); 186 ngx_int_t (*add_conn)(ngx_connection_t *c);
187 int (*del_conn)(ngx_connection_t *c, u_int flags); 187 ngx_int_t (*del_conn)(ngx_connection_t *c, u_int flags);
188 188
189 int (*process)(ngx_cycle_t *cycle); 189 ngx_int_t (*process)(ngx_cycle_t *cycle);
190 int (*init)(ngx_cycle_t *cycle); 190 ngx_int_t (*init)(ngx_cycle_t *cycle);
191 void (*done)(ngx_cycle_t *cycle); 191 void (*done)(ngx_cycle_t *cycle);
192 } ngx_event_actions_t; 192 } ngx_event_actions_t;
193 193
194 194
195 extern ngx_event_actions_t ngx_event_actions; 195 extern ngx_event_actions_t ngx_event_actions;
196 196
247 * No need to add or delete the event filters - rt signals. 247 * No need to add or delete the event filters - rt signals.
248 */ 248 */
249 #define NGX_USE_RTSIG_EVENT 0x00000100 249 #define NGX_USE_RTSIG_EVENT 0x00000100
250 250
251 /* 251 /*
252 * The alternative event method after the rt signals queue overflow.
253 */
254 #define NGX_OVERFLOW_EVENT 0x00000200
255
256 /*
257 * No need to add or delete the event filters - overlapped, aio_read, 252 * No need to add or delete the event filters - overlapped, aio_read,
258 * aioread, io_submit. 253 * aioread, io_submit.
259 */ 254 */
260 #define NGX_USE_AIO_EVENT 0x00000400 255 #define NGX_USE_AIO_EVENT 0x00000200
261 256
262 /* 257 /*
263 * Need to add socket or handle only once - i/o completion port. 258 * Need to add socket or handle only once - i/o completion port.
264 * It also requires HAVE_AIO and NGX_USE_AIO_EVENT to be set. 259 * It also requires HAVE_AIO and NGX_USE_AIO_EVENT to be set.
265 */ 260 */
266 #define NGX_USE_IOCP_EVENT 0x00000800 261 #define NGX_USE_IOCP_EVENT 0x00000400
267 262
268 263
269 264
270 /* 265 /*
271 * The event filter is deleted before the closing file. 266 * The event filter is deleted before the closing file.
388 #define NGX_EVENT_CONF 0x00200000 383 #define NGX_EVENT_CONF 0x00200000
389 384
390 385
391 typedef struct { 386 typedef struct {
392 ngx_uint_t connections; 387 ngx_uint_t connections;
393 ngx_int_t use; 388 ngx_uint_t use;
394 389
395 ngx_flag_t multi_accept; 390 ngx_flag_t multi_accept;
396 ngx_flag_t accept_mutex; 391 ngx_flag_t accept_mutex;
397 392
398 ngx_msec_t accept_mutex_delay; 393 ngx_msec_t accept_mutex_delay;