aboutsummaryrefslogtreecommitdiff
path: root/src/test/httpsrv
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-05-03 08:42:32 +0000
committerMike Buland <eichlan@xagasoft.com>2006-05-03 08:42:32 +0000
commit68db829db66dbf8faad5bd8df35760b5af3a1491 (patch)
treed1b79a641a14966dbd1bb2bea6625454db7f64a4 /src/test/httpsrv
parent96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75 (diff)
downloadlibbu++-68db829db66dbf8faad5bd8df35760b5af3a1491.tar.gz
libbu++-68db829db66dbf8faad5bd8df35760b5af3a1491.tar.bz2
libbu++-68db829db66dbf8faad5bd8df35760b5af3a1491.tar.xz
libbu++-68db829db66dbf8faad5bd8df35760b5af3a1491.zip
Sweet, all changes from the (once again 1 rev) branch have been merged back in.
Now to finalize the changes in my other programs.
Diffstat (limited to '')
-rw-r--r--src/test/httpsrv/httpconnectionmonitor.cpp3
-rw-r--r--src/test/httpsrv/httpconnectionmonitor.h2
-rw-r--r--src/test/httpsrv/main.cpp3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/test/httpsrv/httpconnectionmonitor.cpp b/src/test/httpsrv/httpconnectionmonitor.cpp
index eaadb36..ee1eab3 100644
--- a/src/test/httpsrv/httpconnectionmonitor.cpp
+++ b/src/test/httpsrv/httpconnectionmonitor.cpp
@@ -10,8 +10,9 @@ HttpConnectionMonitor::~HttpConnectionMonitor()
10{ 10{
11} 11}
12 12
13bool HttpConnectionMonitor::onNewConnection( Connection *pCon ) 13bool HttpConnectionMonitor::onNewConnection( Connection *pCon, int nPort )
14{ 14{
15 printf("Got connection on port %d\n", nPort );
15 Http hp( pCon ); 16 Http hp( pCon );
16 17
17 pCon->readInput( 60, 0 ); 18 pCon->readInput( 60, 0 );
diff --git a/src/test/httpsrv/httpconnectionmonitor.h b/src/test/httpsrv/httpconnectionmonitor.h
index 63f29e4..30c0afd 100644
--- a/src/test/httpsrv/httpconnectionmonitor.h
+++ b/src/test/httpsrv/httpconnectionmonitor.h
@@ -9,7 +9,7 @@ public:
9 HttpConnectionMonitor(); 9 HttpConnectionMonitor();
10 ~HttpConnectionMonitor(); 10 ~HttpConnectionMonitor();
11 11
12 bool onNewConnection( Connection *pCon ); 12 bool onNewConnection( Connection *pCon, int nPort );
13 bool onClosedConnection( Connection *pCon ); 13 bool onClosedConnection( Connection *pCon );
14}; 14};
15 15
diff --git a/src/test/httpsrv/main.cpp b/src/test/httpsrv/main.cpp
index 4ee1ad3..2f1563c 100644
--- a/src/test/httpsrv/main.cpp
+++ b/src/test/httpsrv/main.cpp
@@ -10,7 +10,8 @@ int main()
10 10
11 srv.setConnectionMonitor( &http ); 11 srv.setConnectionMonitor( &http );
12 12
13 srv.startServer( 7331, 40 ); 13 printf("Listening on port 7331\n");
14 srv.startServer( 7331 );
14 15
15 for(;;) 16 for(;;)
16 { 17 {