From 33fef4a17290e7872293d8cc173bec826f24001c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 3 May 2006 02:56:51 +0000 Subject: Added the new singleton class template. Very cool, now I need to switch all my singletons to using it. --- src/test/httpsrv/httpconnectionmonitor.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/test/httpsrv/httpconnectionmonitor.cpp') diff --git a/src/test/httpsrv/httpconnectionmonitor.cpp b/src/test/httpsrv/httpconnectionmonitor.cpp index 4eb6817..eaadb36 100644 --- a/src/test/httpsrv/httpconnectionmonitor.cpp +++ b/src/test/httpsrv/httpconnectionmonitor.cpp @@ -49,15 +49,22 @@ bool HttpConnectionMonitor::onNewConnection( Connection *pCon ) else { printf("Non get: %s\n", hp.getRequestTypeStr() ); + pCon->appendOutput("HTTP/1.1 100 Continue\r\n\r\n"); } pCon->writeOutput(); + //for( int j = 0; j < 50; j++ ) + { + pCon->readInput( 1, 0 ); + //printf("Size so far: %d\n", pCon->getInputAmnt() ); + } if( pCon->hasInput() ) { std::string s( pCon->getInput(), pCon->getInputAmnt() ); - printf("Reamining data\n==============\n%s\n==============\n", - s.c_str() ); + pCon->printInputDebug(); + //printf("Reamining data\n==============\n%s\n==============\n", + // s.c_str() ); } pCon->disconnect(); -- cgit v1.2.3