comparison src/event/modules/ngx_iocp_module.c @ 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 c1f3a3c7c5db
children 0ba4821f4460
comparison
equal deleted inserted replaced
260:5dacbb4daaf6 261:bdd631bf1a1c
11 11
12 12
13 static int ngx_iocp_init(ngx_cycle_t *cycle); 13 static int ngx_iocp_init(ngx_cycle_t *cycle);
14 static void ngx_iocp_done(ngx_cycle_t *cycle); 14 static void ngx_iocp_done(ngx_cycle_t *cycle);
15 static int ngx_iocp_add_event(ngx_event_t *ev, int event, u_int key); 15 static int ngx_iocp_add_event(ngx_event_t *ev, int event, u_int key);
16 static int ngx_iocp_del_connection(ngx_connection_t *c); 16 static int ngx_iocp_del_connection(ngx_connection_t *c, u_int flags);
17 static int ngx_iocp_process_events(ngx_log_t *log); 17 static int ngx_iocp_process_events(ngx_log_t *log);
18 static void *ngx_iocp_create_conf(ngx_cycle_t *cycle); 18 static void *ngx_iocp_create_conf(ngx_cycle_t *cycle);
19 static char *ngx_iocp_init_conf(ngx_cycle_t *cycle, void *conf); 19 static char *ngx_iocp_init_conf(ngx_cycle_t *cycle, void *conf);
20 20
21 21
152 152
153 return NGX_OK; 153 return NGX_OK;
154 } 154 }
155 155
156 156
157 static int ngx_iocp_del_connection(ngx_connection_t *c) 157 static int ngx_iocp_del_connection(ngx_connection_t *c, u_int flags)
158 { 158 {
159 if (CancelIo((HANDLE) c->fd) == 0) { 159 if (CancelIo((HANDLE) c->fd) == 0) {
160 ngx_log_error(NGX_LOG_ALERT, c->log, ngx_errno, "CancelIo() failed"); 160 ngx_log_error(NGX_LOG_ALERT, c->log, ngx_errno, "CancelIo() failed");
161 return NGX_ERROR; 161 return NGX_ERROR;
162 } 162 }