Mercurial > hg > nginx
comparison src/core/ngx_server.h @ 0:4eff17414a43
nginx-0.0.1-2002-08-06-20:39:45 import
The first code that uses "ngx_" prefix, the previous one used "gx_" prefix.
At that point the code is not yet usable. The first draft ideas are dated
back to 23.10.2001.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Aug 2002 16:39:45 +0000 |
parents | |
children | ffffe1499bce |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4eff17414a43 |
---|---|
1 #ifndef _NGX_SERVER_H_INCLUDED_ | |
2 #define _NGX_SERVER_H_INCLUDED_ | |
3 | |
4 | |
5 #include <ngx_config.h> | |
6 #include <ngx_types.h> | |
7 #include <ngx_alloc.h> | |
8 | |
9 typedef struct { | |
10 int log_level; | |
11 ngx_pool_t *pool; | |
12 int (*handler)(void *data); | |
13 int buff_size; | |
14 } ngx_server_t; | |
15 | |
16 | |
17 typedef struct { | |
18 ngx_socket_t fd; | |
19 | |
20 ngx_log_t *log; | |
21 ngx_server_t *server; | |
22 | |
23 unsigned shared:1; | |
24 #if (HAVE_DEFERRED_ACCEPT) | |
25 unsigned accept_filter:1; | |
26 #endif | |
27 } ngx_listen_t; | |
28 | |
29 | |
30 #endif /* _NGX_SERVER_H_INCLUDED_ */ |