comparison src/event/ngx_event_proxy.h @ 150:ad5f382c9e7d

nginx-0.0.1-2003-10-19-23:57:23 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 19 Oct 2003 19:57:23 +0000
parents 5afee0074707
children fb48bf4fea1c
comparison
equal deleted inserted replaced
149:86404ba5c517 150:ad5f382c9e7d
34 void *input_ctx; 34 void *input_ctx;
35 35
36 ngx_event_proxy_output_filter_pt output_filter; 36 ngx_event_proxy_output_filter_pt output_filter;
37 void *output_ctx; 37 void *output_ctx;
38 38
39 unsigned read:1;
39 unsigned cachable:1; 40 unsigned cachable:1;
40 unsigned upstream_done:1; 41 unsigned upstream_done:1;
41 unsigned upstream_eof:1; 42 unsigned upstream_eof:1;
42 unsigned upstream_error:1; 43 unsigned upstream_error:1;
43 unsigned downstream_done:1; 44 unsigned downstream_done:1;
44 unsigned downstream_error:1; 45 unsigned downstream_error:1;
45
46 int upstream_level;
47 int downstream_level;
48 46
49 int hunks; 47 int hunks;
50 ngx_bufs_t bufs; 48 ngx_bufs_t bufs;
51 49
52 size_t busy_len; 50 size_t busy_len;
69 ngx_path_t *temp_path; 67 ngx_path_t *temp_path;
70 char *temp_file_warn; 68 char *temp_file_warn;
71 }; 69 };
72 70
73 71
72 int ngx_event_proxy(ngx_event_proxy_t *p, int do_write);
73 int ngx_event_proxy_copy_input_filter(ngx_event_proxy_t *p, ngx_hunk_t *hunk);
74
75 /* STUB */
74 int ngx_event_proxy_read_upstream(ngx_event_proxy_t *p); 76 int ngx_event_proxy_read_upstream(ngx_event_proxy_t *p);
75 int ngx_event_proxy_write_to_downstream(ngx_event_proxy_t *p); 77 int ngx_event_proxy_write_to_downstream(ngx_event_proxy_t *p);
76 int ngx_event_proxy_copy_input_filter(ngx_event_proxy_t *p, ngx_hunk_t *hunk);
77 78
78 79
79 #endif /* _NGX_EVENT_PROXY_H_INCLUDED_ */ 80 #endif /* _NGX_EVENT_PROXY_H_INCLUDED_ */