diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-05-03 02:56:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-05-03 02:56:51 +0000 |
commit | 33fef4a17290e7872293d8cc173bec826f24001c (patch) | |
tree | fc428c53b45fe17d2f1d35c48e9340006b3fd694 /src/test/httpsrv | |
parent | 1587314e55ae761983803aa828addc6854bf4ad4 (diff) | |
download | libbu++-33fef4a17290e7872293d8cc173bec826f24001c.tar.gz libbu++-33fef4a17290e7872293d8cc173bec826f24001c.tar.bz2 libbu++-33fef4a17290e7872293d8cc173bec826f24001c.tar.xz libbu++-33fef4a17290e7872293d8cc173bec826f24001c.zip |
Added the new singleton class template. Very cool, now I need to switch
all my singletons to using it.
Diffstat (limited to 'src/test/httpsrv')
-rw-r--r-- | src/test/httpsrv/httpconnectionmonitor.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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 ) | |||
49 | else | 49 | else |
50 | { | 50 | { |
51 | printf("Non get: %s\n", hp.getRequestTypeStr() ); | 51 | printf("Non get: %s\n", hp.getRequestTypeStr() ); |
52 | pCon->appendOutput("HTTP/1.1 100 Continue\r\n\r\n"); | ||
52 | } | 53 | } |
53 | pCon->writeOutput(); | 54 | pCon->writeOutput(); |
55 | //for( int j = 0; j < 50; j++ ) | ||
56 | { | ||
57 | pCon->readInput( 1, 0 ); | ||
58 | //printf("Size so far: %d\n", pCon->getInputAmnt() ); | ||
59 | } | ||
54 | 60 | ||
55 | if( pCon->hasInput() ) | 61 | if( pCon->hasInput() ) |
56 | { | 62 | { |
57 | std::string s( pCon->getInput(), pCon->getInputAmnt() ); | 63 | std::string s( pCon->getInput(), pCon->getInputAmnt() ); |
58 | 64 | ||
59 | printf("Reamining data\n==============\n%s\n==============\n", | 65 | pCon->printInputDebug(); |
60 | s.c_str() ); | 66 | //printf("Reamining data\n==============\n%s\n==============\n", |
67 | // s.c_str() ); | ||
61 | } | 68 | } |
62 | 69 | ||
63 | pCon->disconnect(); | 70 | pCon->disconnect(); |