diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-10-21 16:49:56 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-21 16:49:56 +0000 |
| commit | 419f9aceb4d994c2f7f51400f59fb2da0ed666d4 (patch) | |
| tree | e32162d1d3833491fc1a95780880099f2ef6857f /src/event/ngx_event_proxy.h | |
| parent | 9760a1336f0eb4057b6e2ccdd4b0145087102b17 (diff) | |
| download | nginx-419f9aceb4d994c2f7f51400f59fb2da0ed666d4.tar.gz nginx-419f9aceb4d994c2f7f51400f59fb2da0ed666d4.tar.bz2 | |
nginx-0.0.1-2003-10-21-20:49:56 import
Diffstat (limited to 'src/event/ngx_event_proxy.h')
| -rw-r--r-- | src/event/ngx_event_proxy.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/src/event/ngx_event_proxy.h b/src/event/ngx_event_proxy.h deleted file mode 100644 index 20d36ab36..000000000 --- a/src/event/ngx_event_proxy.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef _NGX_EVENT_PROXY_H_INCLUDED_ -#define _NGX_EVENT_PROXY_H_INCLUDED_ - - -#include <ngx_config.h> -#include <ngx_core.h> -#include <ngx_event.h> - - -typedef struct ngx_event_proxy_s ngx_event_proxy_t; - -typedef int (*ngx_event_proxy_input_filter_pt)(ngx_event_proxy_t *p, - ngx_hunk_t *hunk); -typedef int (*ngx_event_proxy_output_filter_pt)(void *data, ngx_hunk_t *hunk); - - -struct ngx_event_proxy_s { - ngx_chain_t *free_raw_hunks; - ngx_chain_t *in; - ngx_chain_t **last_in; - - ngx_chain_t *out; - ngx_chain_t **last_out; - - ngx_chain_t *free; - ngx_chain_t *busy; - - /* - * the input filter i.e. that moves HTTP/1.1 chunks - * from the raw hunks to an incoming chain - */ - - ngx_event_proxy_input_filter_pt input_filter; - void *input_ctx; - - ngx_event_proxy_output_filter_pt output_filter; - void *output_ctx; - - unsigned read:1; - unsigned cachable:1; - unsigned upstream_done:1; - unsigned upstream_eof:1; - unsigned upstream_error:1; - unsigned downstream_done:1; - unsigned downstream_error:1; - - int hunks; - ngx_bufs_t bufs; - - size_t max_busy_len; - - off_t temp_offset; - off_t max_temp_file_size; - int temp_file_write_size; - - ngx_connection_t *upstream; - ngx_connection_t *downstream; - - ngx_pool_t *pool; - ngx_log_t *log; - - ngx_chain_t *preread_hunks; - int preread_size; - - ngx_file_t *temp_file; - ngx_path_t *temp_path; - char *temp_file_warn; -}; - - -int ngx_event_proxy(ngx_event_proxy_t *p, int do_write); -int ngx_event_proxy_copy_input_filter(ngx_event_proxy_t *p, ngx_hunk_t *hunk); - -/* STUB */ -int ngx_event_proxy_read_upstream(ngx_event_proxy_t *p); -int ngx_event_proxy_write_to_downstream(ngx_event_proxy_t *p); - - -#endif /* _NGX_EVENT_PROXY_H_INCLUDED_ */ |
