comparison src/core/ngx_connection.h @ 192:31824be1fc66

nginx-0.0.1-2003-11-20-10:05:50 import; auto/configure
author Igor Sysoev <igor@sysoev.ru>
date Thu, 20 Nov 2003 07:05:50 +0000
parents 5526213be452
children 2357fa41738a
comparison
equal deleted inserted replaced
191:71ce40b3c37b 192:31824be1fc66
60 60
61 ngx_listening_t *listening; 61 ngx_listening_t *listening;
62 62
63 off_t sent; 63 off_t sent;
64 64
65 #if 0
66 void (*handler)(ngx_connection_t *c);
67 #endif
68 void *ctx; 65 void *ctx;
69 void *servers; 66 void *servers;
70 67
71 68
72 ngx_log_t *log; 69 ngx_log_t *log;
73 70
74 ngx_pool_t *pool; 71 ngx_pool_t *pool;
75 #if 0
76 int pool_size;
77
78 int family;
79 #endif
80 72
81 struct sockaddr *sockaddr; 73 struct sockaddr *sockaddr;
82 socklen_t socklen; 74 socklen_t socklen;
83 ngx_str_t addr_text; 75 ngx_str_t addr_text;
84 76
85 #if (HAVE_IOCP) 77 #if (HAVE_IOCP)
86 struct sockaddr *local_sockaddr; 78 struct sockaddr *local_sockaddr;
87 socklen_t local_socklen; 79 socklen_t local_socklen;
88 #endif 80 #endif
89 81
90 #if 0
91 int addr;
92 int addr_text_max_len;
93 #endif
94
95 ngx_hunk_t *buffer; 82 ngx_hunk_t *buffer;
96 #if 0
97 unsigned int post_accept_timeout;
98 #endif
99 83
100 int number; 84 int number;
101 85
102 unsigned pipeline:1; 86 unsigned pipeline:1;
103 unsigned unexpected_eof:1; 87 unsigned unexpected_eof:1;
106 unsigned accept_context_updated:1; 90 unsigned accept_context_updated:1;
107 #endif 91 #endif
108 }; 92 };
109 93
110 94
111
112
113
114 #if 0
115 cached file
116 int fd; -2 unused, -1 closed (but read or mmaped), >=0 open
117 char *name;
118
119 void *buf; addr if read or mmaped
120 aiocb* if aio_read
121 OVERLAPPED if TransmitFile or TransmitPackets
122 NULL if sendfile
123
124 size_t buf_size; for plain read
125 off_t offset; for plain read
126
127 size_t size;
128 time_t mod;
129 char *last_mod; "Sun, 17 Mar 2002 19:39:50 GMT"
130 char *etag; ""a6d08-1302-3c94f106""
131 char *len; "4866"
132
133 EV_VNODE should notify by some signal if diretory tree is changed
134 or stat if aged >= N seconds (big enough)
135 #endif
136
137
138 #if 0
139 typedef struct {
140 ssize_t (*recv)(ngx_connection_t *c, char *buf, size_t size);
141 void *dummy_recv_chain;
142 void *dummy_send;
143 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in);
144 } ngx_os_io_t;
145 #endif
146
147
148
149 extern ngx_array_t ngx_listening_sockets;
150 extern ngx_os_io_t ngx_io; 95 extern ngx_os_io_t ngx_io;
151 96
152 97
153 extern ngx_chain_t *(*ngx_write_chain_proc)
154 (ngx_connection_t *c, ngx_chain_t *in);
155
156
157 ssize_t ngx_recv_chain(ngx_connection_t *c, ngx_chain_t *ce);
158 #if 0
159 ngx_chain_t *ngx_write_chain(ngx_connection_t *c, ngx_chain_t *in, off_t flush);
160 #endif
161
162
163 /* TODO: move it to OS specific file */
164 #if (__FreeBSD__)
165 ngx_chain_t *ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in);
166 #endif
167
168
169 #endif /* _NGX_CONNECTION_H_INCLUDED_ */ 98 #endif /* _NGX_CONNECTION_H_INCLUDED_ */