Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 107:b5be4b0448d3
nginx-0.0.1-2003-07-01-19:00:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Jul 2003 15:00:03 +0000 |
parents | 00bee6e7b485 |
children | a9bc21d63fe4 |
comparison
equal
deleted
inserted
replaced
106:9f9de4deda7e | 107:b5be4b0448d3 |
---|---|
63 NGX_CORE_MODULE, /* module type */ | 63 NGX_CORE_MODULE, /* module type */ |
64 NULL /* init module */ | 64 NULL /* init module */ |
65 }; | 65 }; |
66 | 66 |
67 | 67 |
68 static ngx_str_t event_name = ngx_string("event"); | 68 static ngx_str_t event_core_name = ngx_string("event_core"); |
69 | 69 |
70 static ngx_command_t ngx_event_commands[] = { | 70 static ngx_command_t ngx_event_core_commands[] = { |
71 | 71 |
72 {ngx_string("connections"), | 72 {ngx_string("connections"), |
73 NGX_EVENT_CONF|NGX_CONF_TAKE1, | 73 NGX_EVENT_CONF|NGX_CONF_TAKE1, |
74 ngx_conf_set_num_slot, | 74 ngx_conf_set_num_slot, |
75 0, | 75 0, |
92 | 92 |
93 ngx_null_command | 93 ngx_null_command |
94 }; | 94 }; |
95 | 95 |
96 | 96 |
97 ngx_event_module_t ngx_event_module_ctx = { | 97 ngx_event_module_t ngx_event_core_module_ctx = { |
98 &event_name, | 98 &event_core_name, |
99 ngx_event_create_conf, /* create configuration */ | 99 ngx_event_create_conf, /* create configuration */ |
100 ngx_event_init_conf, /* init configuration */ | 100 ngx_event_init_conf, /* init configuration */ |
101 | 101 |
102 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } | 102 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } |
103 }; | 103 }; |
104 | 104 |
105 | 105 |
106 ngx_module_t ngx_event_module = { | 106 ngx_module_t ngx_event_core_module = { |
107 NGX_MODULE, | 107 NGX_MODULE, |
108 &ngx_event_module_ctx, /* module context */ | 108 &ngx_event_core_module_ctx, /* module context */ |
109 ngx_event_commands, /* module directives */ | 109 ngx_event_core_commands, /* module directives */ |
110 NGX_EVENT_MODULE, /* module type */ | 110 NGX_EVENT_MODULE, /* module type */ |
111 NULL /* init module */ | 111 NULL /* init module */ |
112 }; | 112 }; |
113 | 113 |
114 | 114 |
123 ngx_event_module_t *module; | 123 ngx_event_module_t *module; |
124 #if (WIN32) | 124 #if (WIN32) |
125 ngx_iocp_conf_t *iocpcf; | 125 ngx_iocp_conf_t *iocpcf; |
126 #endif | 126 #endif |
127 | 127 |
128 ecf = ngx_event_get_conf(ngx_event_module); | 128 ecf = ngx_event_get_conf(ngx_event_core_module); |
129 | 129 |
130 ngx_log_debug(log, "CONN: %d" _ ecf->connections); | 130 ngx_log_debug(log, "CONN: %d" _ ecf->connections); |
131 ngx_log_debug(log, "TYPE: %d" _ ecf->use); | 131 ngx_log_debug(log, "TYPE: %d" _ ecf->use); |
132 | 132 |
133 for (m = 0; ngx_modules[m]; m++) { | 133 for (m = 0; ngx_modules[m]; m++) { |