comparison src/core/ngx_connection.h @ 3:34a521b1a148

nginx-0.0.1-2002-08-20-18:48:28 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 20 Aug 2002 14:48:28 +0000
parents 4eff17414a43
children 669801705ab1
comparison
equal deleted inserted replaced
2:ffffe1499bce 3:34a521b1a148
1 #ifndef _NGX_CONNECTION_H_INCLUDED_ 1 #ifndef _NGX_CONNECTION_H_INCLUDED_
2 #define _NGX_CONNECTION_H_INCLUDED_ 2 #define _NGX_CONNECTION_H_INCLUDED_
3 3
4 #include <ngx_socket.h>
4 #include <ngx_log.h> 5 #include <ngx_log.h>
5 #include <ngx_alloc.h> 6 #include <ngx_alloc.h>
6 #include <ngx_server.h> 7 #include <ngx_server.h>
7 8
8 typedef struct ngx_connection_s ngx_connection_t; 9 typedef struct ngx_connection_s ngx_connection_t;
19 ngx_event_t *read; 20 ngx_event_t *read;
20 ngx_event_t *write; 21 ngx_event_t *write;
21 #endif 22 #endif
22 23
23 ngx_log_t *log; 24 ngx_log_t *log;
25 int (*handler)(ngx_connection_t *c);
24 ngx_server_t *server; 26 ngx_server_t *server;
25 ngx_server_t *servers; 27 ngx_server_t *servers;
26 ngx_pool_t *pool; 28 ngx_pool_t *pool;
27 }; 29 };
28 30
29 31
30 /* 32 #if 0
31
32 cached file 33 cached file
33 int fd; -2 unused, -1 closed (but read or mmaped), >=0 open 34 int fd; -2 unused, -1 closed (but read or mmaped), >=0 open
34 char *name; 35 char *name;
35 36
36 void *buf; addr if read or mmaped 37 void *buf; addr if read or mmaped
47 char *etag; '"a6d08-1302-3c94f106"' 48 char *etag; '"a6d08-1302-3c94f106"'
48 char *len; '4866' 49 char *len; '4866'
49 50
50 EV_VNODE should notify by some signal if diretory tree is changed 51 EV_VNODE should notify by some signal if diretory tree is changed
51 or stat if aged >= N seconds (big enough) 52 or stat if aged >= N seconds (big enough)
52 */ 53 #endif
53 54
54 #endif /* _NGX_CONNECTION_H_INCLUDED_ */ 55 #endif /* _NGX_CONNECTION_H_INCLUDED_ */