|
Boost-Commit : |
From: lists.drrngrvy_at_[hidden]
Date: 2007-08-20 18:41:28
Author: drrngrvy
Date: 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
New Revision: 38809
URL: http://svn.boost.org/trac/boost/changeset/38809
Log:
corrected cgi_request_impl_base::connection() to return by reference
Text files modified:
sandbox/SOC/2007/cgi/boost/cgi/basic_sync_io_object.hpp | 2 +-
sandbox/SOC/2007/cgi/boost/cgi/cgi/request_service.hpp | 1 +
sandbox/SOC/2007/cgi/boost/cgi/detail/cgi_request_impl_base.hpp | 2 +-
sandbox/SOC/2007/cgi/libs/cgi/example/acgi/main.cpp | 4 ++--
sandbox/SOC/2007/cgi/libs/cgi/example/cgi/main.cpp | 2 ++
sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 | 21 ++++++++++++---------
6 files changed, 19 insertions(+), 13 deletions(-)
Modified: sandbox/SOC/2007/cgi/boost/cgi/basic_sync_io_object.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/basic_sync_io_object.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/basic_sync_io_object.hpp 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -25,7 +25,7 @@
protected:
explicit basic_sync_io_object()
{
- std::cout<< "Hello";
+ std::cerr<< "Hello";
service.construct(impl);
}
Modified: sandbox/SOC/2007/cgi/boost/cgi/cgi/request_service.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/cgi/request_service.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/cgi/request_service.hpp 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -45,6 +45,7 @@
void construct(implementation_type& impl)
{
+ std::cerr<< "making connection";
impl.connection() = implementation_type::connection_type::create();
}
Modified: sandbox/SOC/2007/cgi/boost/cgi/detail/cgi_request_impl_base.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/detail/cgi_request_impl_base.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/detail/cgi_request_impl_base.hpp 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -60,7 +60,7 @@
bool stdin_parsed() { return stdin_parsed_; }
http::status_code& http_status() { return http_status_; }
- conn_ptr connection() { return connection_; }
+ conn_ptr& connection() { return connection_; }
std::string& null_str() { return null_str_; }
protected:
Modified: sandbox/SOC/2007/cgi/libs/cgi/example/acgi/main.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/example/acgi/main.cpp (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/example/acgi/main.cpp 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -30,12 +30,12 @@
cgi::acgi_request req(service);
req.load();
- std::cout<< "checking in";
+ std::cerr<< "checking in";
std::string buf("Content-type: text/html\r\n\r\nHello there, Universe.");
cgi::write(req, cgi::buffer(buf.c_str(), buf.size()));
- std::cout<< "checking reply";
+ std::cerr<< "checking reply";
cgi::reply rep;
Modified: sandbox/SOC/2007/cgi/libs/cgi/example/cgi/main.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/example/cgi/main.cpp (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/example/cgi/main.cpp 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -7,6 +7,8 @@
try{
cgi::cgi_request req;
+ std::cerr<< "About to write header";
+
std::string buf("Content-type: text/html\r\n\r\nHello there, universe!");
boost::system::error_code ec;
Modified: sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 2007-08-20 18:41:27 EDT (Mon, 20 Aug 2007)
@@ -1,25 +1,28 @@
+import os ;
+
+local BOOST_CGI_ROOT = [ os.environ BOOST_CGI_ROOT ] ;
import testing ;
test-suite cgi_test_suite
:
- [ compile compile/stdio_connection.cpp ]
- [ compile compile/async_stdio_connection.cpp ]
- [ compile compile/tcp_connection.cpp ]
- [ compile compile/cgi_service.cpp ]
+# [ compile compile/stdio_connection.cpp ]
+# [ compile compile/async_stdio_connection.cpp ]
+# [ compile compile/tcp_connection.cpp ]
+# [ compile compile/cgi_service.cpp ]
# [ compile compile/fcgi_service.cpp ]
- [ compile compile/is_async_test.cpp ]
+# [ compile compile/is_async_test.cpp ]
[ compile compile/cgi_request.cpp ]
- [ compile compile/acgi_request.cpp ]
+# [ compile compile/acgi_request.cpp ]
- [ compile compile/reply.cpp ]
+# [ compile compile/reply.cpp ]
- [ compile compile/cgi_header_check.cpp ]
+# [ compile compile/cgi_header_check.cpp ]
# [ run run/stdio_connection.cpp ]
# [ run run/cgi_request.cpp ]
:
<include>$(BOOST_ROOT)
- <include>"../../../"
+ <include>$(BOOST_CGI_ROOT)
;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk