summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-10-31 11:01:43 +0000
committerMike Buland <eichlan@xagasoft.com>2006-10-31 11:01:43 +0000
commit251de734feb2be2d414255dff8358045116e28e1 (patch)
tree02a98b01c398c8c77ba7c73f15a034d72591530b /src/tests
parentbdd4bdd8615b1587974312a92219cbeab0068a7a (diff)
downloadlibbu++-251de734feb2be2d414255dff8358045116e28e1.tar.gz
libbu++-251de734feb2be2d414255dff8358045116e28e1.tar.bz2
libbu++-251de734feb2be2d414255dff8358045116e28e1.tar.xz
libbu++-251de734feb2be2d414255dff8358045116e28e1.zip
Expanded the scope of the stream system to include positional functions. Updated
the Connection class so that it won't die horribly if you don't provide the pointers to updatable memory for the amount of time not spent waiting for data during a read. Also fiddled with the http test, as you can see...nothing important.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/httpsrv/httpconnectionmonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/httpsrv/httpconnectionmonitor.cpp b/src/tests/httpsrv/httpconnectionmonitor.cpp
index ee1eab3..451478e 100644
--- a/src/tests/httpsrv/httpconnectionmonitor.cpp
+++ b/src/tests/httpsrv/httpconnectionmonitor.cpp
@@ -13,11 +13,11 @@ HttpConnectionMonitor::~HttpConnectionMonitor()
13bool HttpConnectionMonitor::onNewConnection( Connection *pCon, int nPort ) 13bool HttpConnectionMonitor::onNewConnection( Connection *pCon, int nPort )
14{ 14{
15 printf("Got connection on port %d\n", nPort ); 15 printf("Got connection on port %d\n", nPort );
16 Http hp( pCon );
17 16
18 pCon->readInput( 60, 0 ); 17 pCon->readInput( 60, 0 );
19 printf("#######################\n%s\n#######################\n", pCon->getInput() ); 18 printf("#######################\n%s\n#######################\n", pCon->getInput() );
20 19
20 Http hp( pCon );
21 while( hp.parseRequest() == false ); 21 while( hp.parseRequest() == false );
22 printf("Done parsing.\n\n"); 22 printf("Done parsing.\n\n");
23 23