comparison src/core/ngx_connection.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 34a521b1a148
comparison
equal deleted inserted replaced
-1:000000000000 0:4eff17414a43
1 #ifndef _NGX_CONNECTION_H_INCLUDED_
2 #define _NGX_CONNECTION_H_INCLUDED_
3
4 #include <ngx_log.h>
5 #include <ngx_alloc.h>
6 #include <ngx_server.h>
7
8 typedef struct ngx_connection_s ngx_connection_t;
9
10 #ifdef NGX_EVENT
11 #include <ngx_event.h>
12 #endif
13
14 struct ngx_connection_s {
15 ngx_socket_t fd;
16 void *data;
17
18 #ifdef NGX_EVENT
19 ngx_event_t *read;
20 ngx_event_t *write;
21 #endif
22
23 ngx_log_t *log;
24 ngx_server_t *server;
25 ngx_server_t *servers;
26 ngx_pool_t *pool;
27 };
28
29
30 /*
31
32 cached file
33 int fd; -2 unused, -1 closed (but read or mmaped), >=0 open
34 char *name;
35
36 void *buf; addr if read or mmaped
37 aiocb* if aio_read
38 OVERLAPPED if TransmitFile or TransmitPackets
39 NULL if sendfile
40
41 size_t buf_size; for plain read
42 off_t offset; for plain read
43
44 size_t size;
45 time_t mod;
46 char *last_mod; 'Sun, 17 Mar 2002 19:39:50 GMT'
47 char *etag; '"a6d08-1302-3c94f106"'
48 char *len; '4866'
49
50 EV_VNODE should notify by some signal if diretory tree is changed
51 or stat if aged >= N seconds (big enough)
52 */
53
54 #endif /* _NGX_CONNECTION_H_INCLUDED_ */