--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/28 14:41:29 1.20 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/04/09 13:21:16 1.24 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mod_parser3.C,v 1.20 2001/03/28 14:41:29 paf Exp $ + $Id: mod_parser3.C,v 1.24 2001/04/09 13:21:16 paf Exp $ */ #include "httpd.h" @@ -21,6 +21,9 @@ #include "pa_globals.h" #include "pa_request.h" #include "pa_version.h" +#include "pa_socks.h" + +/// @todo init_socks struct Parser_module_config { const char* parser_root_auto_path; /// filespec of admin's auto.p file @@ -84,7 +87,7 @@ const char *SAPI::get_env(Pool& pool, co return (const char *)ap_table_get(r->subprocess_env, name); } -uint SAPI::read_post(Pool& pool, char *buf, uint max_bytes) { +size_t SAPI::read_post(Pool& pool, char *buf, size_t max_bytes) { request_rec *r=static_cast(pool.context()); /* ap_log_error(APLOG_MARK, APLOG_DEBUG, r->server, @@ -133,7 +136,7 @@ void SAPI::send_header(Pool& pool) { ap_kill_timeout(r); } -void SAPI::send_body(Pool& pool, const char *buf, size_t size) { +void SAPI::send_body(Pool& pool, const void *buf, size_t size) { request_rec *r=static_cast(pool.context()); ap_hard_timeout("Send body", r); @@ -156,7 +159,7 @@ void SAPI::log(Pool& pool, const char *f /** main workhorse - @todo parser4: intelligent cache-control + @todo intelligent cache-control */ static int parser_handler(request_rec *r) {