modcplusplus-devel Mailing List for mod_cplusplus (Page 19)
Brought to you by:
gr84b8,
johnksterling
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(14) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
(44) |
Mar
(8) |
Apr
(33) |
May
(5) |
Jun
(5) |
Jul
(2) |
Aug
(4) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(9) |
Oct
|
Nov
(5) |
Dec
|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(11) |
Jun
(7) |
Jul
(2) |
Aug
(11) |
Sep
|
Oct
|
Nov
(7) |
Dec
(4) |
2005 |
Jan
(13) |
Feb
(7) |
Mar
(10) |
Apr
(11) |
May
(2) |
Jun
|
Jul
(8) |
Aug
(9) |
Sep
|
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
(12) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(6) |
2007 |
Jan
(4) |
Feb
(13) |
Mar
(10) |
Apr
(56) |
May
(69) |
Jun
(93) |
Jul
(116) |
Aug
(62) |
Sep
(15) |
Oct
(14) |
Nov
(18) |
Dec
(11) |
2008 |
Jan
(8) |
Feb
(13) |
Mar
(32) |
Apr
(22) |
May
(15) |
Jun
(10) |
Jul
(18) |
Aug
(10) |
Sep
(16) |
Oct
(12) |
Nov
(41) |
Dec
(40) |
2009 |
Jan
(33) |
Feb
(14) |
Mar
(32) |
Apr
(47) |
May
(103) |
Jun
(100) |
Jul
(72) |
Aug
(21) |
Sep
(22) |
Oct
(30) |
Nov
(7) |
Dec
(19) |
2010 |
Jan
(8) |
Feb
(7) |
Mar
(40) |
Apr
(53) |
May
(67) |
Jun
(62) |
Jul
(26) |
Aug
(37) |
Sep
(13) |
Oct
(3) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mod C. C. L. <mod...@so...> - 2002-05-06 16:32:02
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : include Dir : mod_cplusplus/include Modified Files: mod_cplusplus.h Log Message: fix up our symbol and so loading logic to be platform independent in preparation for the win32 port =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/mod_cplusplus.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- mod_cplusplus.h 7 Mar 2002 20:14:06 -0000 1.11 +++ mod_cplusplus.h 6 May 2002 16:31:30 -0000 1.12 @@ -60,7 +60,7 @@ extern void cpp_insert_request_filters(request_rec *r); extern int cpp_insert_connection_filters(conn_rec *c, void *csd); - extern char *load_cpp_module(cpp_server_rec *server_rec, + extern char *load_cpp_module(apr_pool_t *pool, cpp_server_rec *server_rec, const char *name, const char *path); extern int cpp_call_process_connection(conn_rec *c); #ifdef __cplusplus |
From: Mod C. C. L. <mod...@so...> - 2002-05-06 16:31:31
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : src Dir : mod_cplusplus/src Modified Files: apache_handler.cpp mod_cplusplus.c Log Message: fix up our symbol and so loading logic to be platform independent in preparation for the win32 port =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/apache_handler.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- apache_handler.cpp 26 Apr 2002 18:57:00 -0000 1.10 +++ apache_handler.cpp 6 May 2002 16:31:31 -0000 1.11 @@ -1,6 +1,6 @@ -#include "dlfcn.h" #include "apache_handler.h" #include "apache_protocol.h" +#include "apr_dso.h" extern "C" { @@ -92,26 +92,37 @@ CALL_REQ_FUNCTION(logger); } - char *load_cpp_module(cpp_server_rec *server_rec, const char *name, + char *load_cpp_module(apr_pool_t *pool, + cpp_server_rec *server_rec, const char *name, const char *path) { - void *dlhandle = NULL; + apr_dso_handle_t *res_handle; + apr_status_t load_status; + apr_dso_handle_sym_t ressym; cpp_factory_t *cur_handler; - if((dlhandle = dlopen(path, RTLD_NOW)) == NULL){ + + load_status = apr_dso_load(&res_handle, path, pool); + if( load_status != APR_SUCCESS ) { + char load_error[100]; ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL, - "couldn't load so: %s", dlerror()); - return "Coulnd't Load CPP SO"; + "couldn't load so: %s", + apr_dso_error(res_handle, load_error, + sizeof(load_error))); + return "Couldn't Load CPP SO"; } - if((cur_handler = - (cpp_factory_t *)dlsym(dlhandle, - name)) == NULL){ + load_status = apr_dso_sym(&ressym, + res_handle, + name); + if( load_status != APR_SUCCESS ) { + char load_error[100]; ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL, - "unable to load cpp handler \'%s\': %s", - path, - dlerror()); - - return "Coulnd't Fetch CPP symbol"; + "couldn't load so: %s", + apr_dso_error(res_handle, load_error, + sizeof(load_error))); + return "Couldn't Find CPP Symbol"; } + cur_handler = (cpp_factory_t *)ressym; + ApacheHandler *handler = cur_handler->handler_func ? cur_handler->handler_func() : NULL; ApacheInputFilter *input_filter = cur_handler->input_filter_func ? =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/mod_cplusplus.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- mod_cplusplus.c 29 Mar 2002 23:12:58 -0000 1.15 +++ mod_cplusplus.c 6 May 2002 16:31:31 -0000 1.16 @@ -77,7 +77,7 @@ ap_get_module_config(cmd->server->module_config, &cplusplus_module); - return load_cpp_module(server_rec, name, path_to_so); + return load_cpp_module(cmd->pool, server_rec, name, path_to_so); } static const char *pass_var(cmd_parms *cmd, void *config, |
From: Mod C. C. L. <mod...@so...> - 2002-05-03 17:20:44
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : include Dir : mod_cplusplus/include Modified Files: apache_output_buffer.h Log Message: fix typo in comment (submitted by Jonathan Wakely <co...@co...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/apache_output_buffer.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- apache_output_buffer.h 3 May 2002 16:50:27 -0000 1.2 +++ apache_output_buffer.h 3 May 2002 17:20:43 -0000 1.3 @@ -25,7 +25,7 @@ /* if buffering output, send buffered output to browser immediatly */ int flush(); - /* if beffering output, clear buffer */ + /* if buffering output, clear buffer */ void clear(); /* set whether or not to buffer output */ |
From: Jonathan W. <co...@co...> - 2002-05-03 17:03:08
|
On Fri, May 03, 2002 at 09:50:28AM -0700, Mod Cplusplus CVS List wrote: > RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/apache_output_buffer.h,v [snip] > - // if beffering output, clear buffer > - void clear(); [snip] > + /* if beffering output, clear buffer */ > + void clear(); beffering? ;) -- "Nothing is true. Everything is permissible." - Hassan i Sabbah |
From: Mod C. C. L. <mod...@so...> - 2002-05-03 16:50:29
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : include Dir : mod_cplusplus/include Modified Files: apache_output_buffer.h env_value.h request_env.h Log Message: clean up some formatting and remove some copyright stuff that slipped through =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/apache_output_buffer.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- apache_output_buffer.h 26 Apr 2002 18:57:00 -0000 1.1 +++ apache_output_buffer.h 3 May 2002 16:50:27 -0000 1.2 @@ -1,27 +1,6 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * $Id: apache_output_buffer.h,v 1.1 2002/04/26 18:57:00 gr84b8 Exp $ - * apache_output_buffer.h - Wed Apr 24 09:03:34 2002 - * Copyright (C) 2001 Nathan Stitt - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - #ifndef __APACHE_OUTPUT_BUFFER__ #define __APACHE_OUTPUT_BUFFER__ - #if (defined (__GNUC__) && (__GNUC__ < 3)) #include <rope> #else @@ -37,44 +16,46 @@ #include <iostream> #include <string> -class apache_output_buffer - : public std::streambuf { -public: - apache_output_buffer( request_rec* r, bool buffer = false ); - - ~apache_output_buffer(); - - // if buffering output, send buffered output to browser immediatly - int flush(); - - // if beffering output, clear buffer - void clear(); - - // set whether or not to buffer output - void buffer ( bool val ); - - // is output being buffered? - bool buffer(); - - // set what content type should be sent - // to browser. Returns true on success, false - // if we've already sent some content, and it's to - // late to resend. - bool set_content_type(const std::string& type); - - -protected: - int overflow(int c); - -private: - inline void signal_sending(); - inline void send_http_header(); - request_rec *r_; - std::crope memory; - bool buffer_; - bool output_anything_; - std::string content_type_; +class apache_output_buffer : public std::streambuf { + public: + apache_output_buffer( request_rec* r, bool buffer = false ); + + ~apache_output_buffer(); + + /* if buffering output, send buffered output to browser immediatly */ + int flush(); + + /* if beffering output, clear buffer */ + void clear(); + + /* set whether or not to buffer output */ + void buffer ( bool val ); + + /* is output being buffered? */ + bool buffer(); + + /* + * set what content type should be sent + * to browser. Returns true on success, false + * if we've already sent some content, and it's to + * late to resend. + */ + bool set_content_type(const std::string& type); + + + protected: + int overflow(int c); + + private: + inline void signal_sending(); + inline void send_http_header(); + request_rec *r_; + std::crope memory; + bool buffer_; + bool output_anything_; + std::string content_type_; }; #endif // __APACHE_OUTPUT_BUFFER__ + =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/env_value.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- env_value.h 26 Apr 2002 18:57:00 -0000 1.1 +++ env_value.h 3 May 2002 16:50:27 -0000 1.2 @@ -1,23 +1,3 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * $Id: env_value.h,v 1.1 2002/04/26 18:57:00 gr84b8 Exp $ - * env_value.h - Wed Apr 24 08:58:54 2002 - * Copyright (C) 2001 Nathan Stitt - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - #ifndef __ENV_VALUE_H__ #define __ENV_VALUE_H__ @@ -26,19 +6,19 @@ #include <iterator> class env_value { - friend class request_env; -public: - typedef std::vector<std::string>::const_iterator const_iterator; - - env_value(); - const_iterator end(); - const_iterator begin(); - int num_vals(); - std::string operator[]( int index ); - -private: - void add_value( const std::string& value ); - std::vector<std::string> vals_; + friend class request_env; + public: + typedef std::vector<std::string>::const_iterator const_iterator; + + env_value(); + const_iterator end(); + const_iterator begin(); + int num_vals(); + std::string operator[]( int index ); + + private: + void add_value( const std::string& value ); + std::vector<std::string> vals_; }; =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/request_env.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- request_env.h 26 Apr 2002 18:57:00 -0000 1.1 +++ request_env.h 3 May 2002 16:50:27 -0000 1.2 @@ -1,23 +1,3 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * $Id: request_env.h,v 1.1 2002/04/26 18:57:00 gr84b8 Exp $ - * request_env.h - Tue Apr 16 11:09:28 2002 - * Copyright (C) 2001 Nathan Stitt - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - #ifndef __REQUEST_ENV_H__ #define __REQUEST_ENV_H__ @@ -38,54 +18,54 @@ class env_value; class request_env : public std::ostream { -public: - - request_env( request_rec *r,bool buffer = false ); - - //! dump the values in ( hopefully ) nicely formatted html - void dump(); - - //! is request a post? - bool s_post(); - - //! returns number of bytes written to client, -1 on failure - int flush(); - - //! set the content type. Defaults to text/html if not set - bool set_content_type(const std::string& type); - - void set_buffered( bool val ); - bool is_buffered(); - void clear_buffer(); - void flush_buffer(); - bool is_post(); - bool is_get(); - - env_value* operator[]( const std::string& name ); - - request_rec* raw_record(); - - ~request_env(); -private: - - struct str_hash { - std::size_t inline operator()(const std::string& key) const - {return std::hash<const char*>()( key.c_str());} - }; - - typedef std::hash_map< std::string, env_value*, str_hash > hash_type; - - apache_output_buffer output_buffer_; - request_rec *r_; - - env_value* search(const std::string& key); - - bool truncated_; - void decode( char *ch, env_value *pPtr, std::string& pStr ); - hash_type env_; - apr_size_t len_read_; - bool is_post_; - + public: + + request_env( request_rec *r,bool buffer = false ); + + /* dump the values in ( hopefully ) nicely formatted html */ + void dump(); + + /* is request a post? */ + bool s_post(); + + /* returns number of bytes written to client, -1 on failure */ + int flush(); + + /* set the content type. Defaults to text/html if not set */ + bool set_content_type(const std::string& type); + + void set_buffered( bool val ); + bool is_buffered(); + void clear_buffer(); + void flush_buffer(); + bool is_post(); + bool is_get(); + + env_value* operator[]( const std::string& name ); + + request_rec* raw_record(); + + ~request_env(); + private: + + struct str_hash { + std::size_t inline operator()(const std::string& key) const + {return std::hash<const char*>()( key.c_str());} + }; + + typedef std::hash_map< std::string, env_value*, str_hash > hash_type; + + apache_output_buffer output_buffer_; + request_rec *r_; + + env_value* search(const std::string& key); + + bool truncated_; + void decode( char *ch, env_value *pPtr, std::string& pStr ); + hash_type env_; + apr_size_t len_read_; + bool is_post_; + }; |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 19:08:06
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : test Dir : mod_cplusplus/test/t/handler Modified Files: handler.t Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/test/t/handler/handler.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- handler.t 22 May 2001 19:52:15 -0000 1.1 +++ handler.t 26 Apr 2002 18:57:00 -0000 1.2 @@ -13,5 +13,5 @@ my $handler_url = '/cpp-handler'; -ok GET_BODY($handler_url) =~ "Lets Dump The Request"; +ok GET_BODY($handler_url) =~ "BOO"; |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 18:57:33
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : include Dir : mod_cplusplus/include Modified Files: apache_filters.h Added Files: apache_output_buffer.h env_value.h request_env.h Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/apache_filters.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- apache_filters.h 7 Mar 2002 20:14:06 -0000 1.5 +++ apache_filters.h 26 Apr 2002 18:57:00 -0000 1.6 @@ -1,3 +1,7 @@ + +#ifndef __APACHE_FILTERS_H__ +#define __APACHE_FILTERS_H__ + #include "apache_handler.h" class ApacheInputFilter : public ApacheBase @@ -32,3 +36,5 @@ { return DECLINED; } }; + +#endif // __APACHE_FILTERS_H__ |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 18:57:32
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : src Dir : mod_cplusplus/src Modified Files: .cvsignore Makefile.am apache_handler.cpp Added Files: apache_output_buffer.cpp env_value.cpp request_env.cpp Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- .cvsignore 21 Apr 2002 19:06:31 -0000 1.1 +++ .cvsignore 26 Apr 2002 18:57:00 -0000 1.2 @@ -9,3 +9,6 @@ cpp_server.lo libmod_cplusplus.la mod_cplusplus.lo +apache_output_buffer.lo +env_value.lo +request_env.lo \ No newline at end of file =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- Makefile.am 11 Jun 2001 00:42:18 -0000 1.6 +++ Makefile.am 26 Apr 2002 18:57:00 -0000 1.7 @@ -1,11 +1,17 @@ CLEANFILES = .libs/libmod_cplusplus.so *~ + libmod_cplusplus_la_SOURCES = mod_cplusplus.c \ apache_handler.cpp \ apache_filters.cpp \ apache_protocol.cpp \ cpp_request.cpp \ - cpp_server.cpp + cpp_server.cpp \ + apache_output_buffer.cpp \ + request_env.cpp \ + env_value.cpp + +libmod_cplusplus_la_LIBADD = $(LIB_STDCPP) lib_LTLIBRARIES = libmod_cplusplus.la make_so: =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/apache_handler.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- apache_handler.cpp 4 Jun 2001 00:40:35 -0000 1.9 +++ apache_handler.cpp 26 Apr 2002 18:57:00 -0000 1.10 @@ -29,8 +29,6 @@ { cpp_server_rec *server_rec = NULL; - ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL, - "CPP HANDLER!!!!"); if( !name ) { return NULL; } |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 18:57:32
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/handler Modified Files: test_handler.cpp test_handler.h Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- test_handler.cpp 21 Apr 2002 19:13:27 -0000 1.9 +++ test_handler.cpp 26 Apr 2002 18:57:00 -0000 1.10 @@ -1,4 +1,5 @@ #include "test_handler.h" +#include "request_env.h" TestHandler::TestHandler() : ApacheHandler() @@ -15,23 +16,44 @@ char buf[1024 * 8]; apr_size_t len_read; apr_status_t rc; - - ap_setup_client_block(pRequest->get_request_rec(), REQUEST_CHUNKED_DECHUNK); + request_env ap( pRequest->get_request_rec() ); mHits++; - pRequest->rprintf("\nThis handler has dealt with %d hits", mHits); - pRequest->rputs("\nLets Dump The Request!\n"); + ap << "This handler has dealt with " << mHits << " hits \n"; + ap << "Testing for param name BOO" << std::endl; + pRequest->dump(); + ap_setup_client_block(pRequest->get_request_rec(), REQUEST_CHUNKED_ERROR); if( (pRequest->method_number() == M_POST) || (pRequest->method_number() == M_PUT) ) { - pRequest->rprintf("Content:"); + ap << "Content:"; while((len_read = pRequest->get_client_block(buf, sizeof(buf))) > 0) { - pRequest->rprintf("%s", apr_pstrndup(pRequest->pool(), - buf, len_read)); + ap << apr_pstrndup(pRequest->pool(), buf, len_read); + ap << std::endl; + } + } + + env_value *boo = ap["BOO"]; + + if ( boo ){ + ap << "Found! Has " << boo->num_vals() << " Values.\n"; + + for ( env_value::const_iterator it = boo->begin(); + it != boo->end(); it++ ){ + + ap << " " << (*it) << std::endl; } + } else { + ap << "Not Found!\n"; } + + ap.width(40); + ap.fill('-'); + ap << "\n" << "I will now dump out everything I recieved\n"; + ap.dump(); + return OK; } =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- test_handler.h 24 May 2001 18:53:15 -0000 1.3 +++ test_handler.h 26 Apr 2002 18:57:00 -0000 1.4 @@ -3,7 +3,7 @@ class TestHandler : public ApacheHandler { private: - int mHits; + unsigned int mHits; public: TestHandler(void); ~TestHandler(void); |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 18:57:32
|
Mod Cplusplus CVS committal Author : gr84b8 Module : mod_cplusplus Dir : mod_cplusplus Modified Files: ChangeLog configure.in Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/ChangeLog,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ChangeLog 21 Apr 2002 19:13:27 -0000 1.6 +++ ChangeLog 26 Apr 2002 18:56:59 -0000 1.7 @@ -1,7 +1,15 @@ +2002-04-25 John K. Sterling <jo...@st...> + * Added enviroment decode class to decode request parameters. + Handles both get and post requests, and also features + cpp streams output support. Modified examples/handler/test_handler.cpp + to show an example of the classes in use. + Also added a few include gards in header files, + and created a dontdiff file to allow easier creation of patches. + (Submitted by: Nathan Stitt <na...@st...>) 2002-04-21 John K. Sterling <jo...@st...> * fix a bug in the example... we were not initializing the mHits counter. - (Submitted by: Nathan Stitt <na...@al...>) + (Submitted by: Nathan Stitt <na...@st...>) 2002-04-21 John K. Sterling <jo...@st...> * add cvs ignores for cleanliness 2002-04-21 John K. Sterling <jo...@st...> @@ -9,7 +17,7 @@ 2002-04-16 John K. Sterling <jo...@st...> * Add proper support for post and put to the examples. also added in the discard_request_body method - (Submitted by: Nathan Stitt <na...@al...>) + (Submitted by: Nathan Stitt <na...@st...>) 2001-11-12 John K. Sterling <jo...@st...> * Add support for stl strings (Submitted by: kurtb149 Kurt M. Brown) 2001-07-21 John K. Sterling <jo...@st...> =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/configure.in,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- configure.in 21 Apr 2002 18:58:07 -0000 1.8 +++ configure.in 26 Apr 2002 18:56:59 -0000 1.9 @@ -32,11 +32,13 @@ AC_MSG_ERROR(--with-httpd not given) ]) +AC_CHECK_LIB(stdc++, __ti7ostream, LIB_STDCPP="-lstdc++") CPLUSPLUS_BUILDDIR=`pwd` CPPFLAGS="$CPPFLAGS -g -I$CPLUSPLUS_BUILDDIR/include" AC_SUBST(CPLUSPLUS_BUILDDIR) AC_SUBST(HTTPD_DIR) AC_SUBST(CFLAGS) +AC_SUBST(LIB_STDCPP) AC_OUTPUT(Makefile src/Makefile example/Makefile example/handler/Makefile example/input_filter/Makefile example/output_filter/Makefile example/protocol/Makefile test/Makefile test/t/conf/extra.conf) |
From: Mod C. C. L. <mod...@so...> - 2002-04-26 18:57:31
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/input_filter Modified Files: test_input.cpp Log Message: add in environ decoding, request streaming, and updated the test suite and exmaples (Submitted by: Nathan Stitt <na...@st...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/input_filter/test_input.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- test_input.cpp 29 Mar 2002 23:12:58 -0000 1.10 +++ test_input.cpp 26 Apr 2002 18:57:00 -0000 1.11 @@ -21,7 +21,7 @@ apr_bucket *input_bucket; apr_bucket *output_bucket; - + apr_bucket_brigade *input_brigade = apr_brigade_create(f->c->pool, f->c->bucket_alloc); @@ -32,21 +32,21 @@ } while(!APR_BRIGADE_EMPTY(input_brigade)) { input_bucket = APR_BRIGADE_FIRST(input_brigade); - const char *data; - apr_size_t len; - - if(APR_BUCKET_IS_EOS(input_bucket)) { - APR_BUCKET_REMOVE(input_bucket); - APR_BRIGADE_INSERT_TAIL(bb, input_bucket); - break; - } - + const char *data; + apr_size_t len; + + if(APR_BUCKET_IS_EOS(input_bucket)) { + APR_BUCKET_REMOVE(input_bucket); + APR_BRIGADE_INSERT_TAIL(bb, input_bucket); + break; + } + ret = apr_bucket_read(input_bucket, &data, &len, APR_BLOCK_READ); char *new_buf = apr_pstrndup(f->c->pool, data, len); if(ret != APR_SUCCESS) { return ret; } - for(unsigned int n=0 ; n < len ; ++n) { + for(unsigned int n=0 ; n < len ; ++n) { if(!strncmp(&data[n], "localhost", 9)) new_buf[n]=toupper(data[n]); else @@ -75,4 +75,3 @@ NULL, NULL, }; - |
From: Mod C. C. L. <mod...@so...> - 2002-04-22 03:44:48
|
Mod Cplusplus CVS committal Author : gr84b8 Module : mod_cplusplus Dir : mod_cplusplus Added Files: mod_cplusplus.kdevprj Log Message: add a kdev project in case peops are interested |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:13:59
|
Mod Cplusplus CVS committal Author : gr84b8 Module : mod_cplusplus Dir : mod_cplusplus Modified Files: ChangeLog Log Message: fix a big in the examples: not initializing mHits (Submitted by: Nathan Stitt <na...@al...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/ChangeLog,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ChangeLog 17 Apr 2002 01:21:07 -0000 1.5 +++ ChangeLog 21 Apr 2002 19:13:27 -0000 1.6 @@ -1,3 +1,11 @@ +2002-04-21 John K. Sterling <jo...@st...> + * fix a bug in the example... we were not initializing the + mHits counter. + (Submitted by: Nathan Stitt <na...@al...>) +2002-04-21 John K. Sterling <jo...@st...> + * add cvs ignores for cleanliness +2002-04-21 John K. Sterling <jo...@st...> + * Now we bundle everything with autotools for reproducable tarballs 2002-04-16 John K. Sterling <jo...@st...> * Add proper support for post and put to the examples. also added in the discard_request_body method |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:13:30
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/handler Modified Files: test_handler.cpp Log Message: fix a big in the examples: not initializing mHits (Submitted by: Nathan Stitt <na...@al...>) =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- test_handler.cpp 17 Apr 2002 01:32:24 -0000 1.8 +++ test_handler.cpp 21 Apr 2002 19:13:27 -0000 1.9 @@ -3,6 +3,7 @@ TestHandler::TestHandler() : ApacheHandler() { + mHits = 0; } TestHandler::~TestHandler() |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:17
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/protocol Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:17
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/output_filter Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/handler Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/input_filter Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : src Dir : mod_cplusplus/src Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : test Dir : mod_cplusplus/test/t Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:14
|
Mod Cplusplus CVS committal Author : gr84b8 Module : mod_cplusplus Dir : mod_cplusplus Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:13
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : test Dir : mod_cplusplus/test/t/conf Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 19:08:12
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : test Dir : mod_cplusplus/test Added Files: .cvsignore Log Message: ignore all these files for cleanlines |
From: Mod C. C. L. <mod...@so...> - 2002-04-21 18:58:42
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : test Dir : mod_cplusplus/test Modified Files: Makefile.am Log Message: now we distribute tarballs using the auto tools dist maker =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/test/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Makefile.am 22 May 2001 19:52:15 -0000 1.1 +++ Makefile.am 21 Apr 2002 18:58:10 -0000 1.2 @@ -1,3 +1,4 @@ +DISTFILES = t Apache-Test Makefile.am check: APXS=${HTTPD_DIR}/bin/apxs; \ export APXS; \ |