comparison src/imap/ngx_imap.c @ 417:0526206251f6

nginx-0.0.10-2004-09-07-19:29:22 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 07 Sep 2004 15:29:22 +0000
parents 3c56e834be46
children 47709bff4468
comparison
equal deleted inserted replaced
416:b9bd635011de 417:0526206251f6
1 1
2 #include <ngx_config.h> 2 #include <ngx_config.h>
3 #include <ngx_core.h> 3 #include <ngx_core.h>
4 #include <ngx_event.h> 4 #include <ngx_event.h>
5 #include <ngx_imap.h>
6
7
8 static char *ngx_imap_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
5 9
6 10
7 static ngx_command_t ngx_imap_commands[] = { 11 static ngx_command_t ngx_imap_commands[] = {
8 12
9 { ngx_string("imap"), 13 { ngx_string("imap"),
28 NGX_MODULE, 32 NGX_MODULE,
29 &ngx_imap_module_ctx, /* module context */ 33 &ngx_imap_module_ctx, /* module context */
30 ngx_imap_commands, /* module directives */ 34 ngx_imap_commands, /* module directives */
31 NGX_CORE_MODULE, /* module type */ 35 NGX_CORE_MODULE, /* module type */
32 NULL, /* init module */ 36 NULL, /* init module */
33 NULL /* init child */ 37 NULL /* init process */
34 }; 38 };
39
40
41 static char *ngx_imap_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
42 {
43 ngx_listening_t *ls;
44
45 /* STUB */
46
47 ls = ngx_listening_inet_stream_socket(cf, 0, 8110);
48 if (ls == NULL) {
49 return NGX_CONF_ERROR;
50 }
51
52 ls->backlog = -1;
53 ls->handler = ngx_imap_init_connection;
54 ls->pool_size = 16384;
55 /* ls->post_accept_timeout = 0; */
56 ls->log = cf->cycle->new_log;
57
58 /* */
59
60 return NGX_CONF_OK;
61 }