From 68db829db66dbf8faad5bd8df35760b5af3a1491 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 3 May 2006 08:42:32 +0000 Subject: Sweet, all changes from the (once again 1 rev) branch have been merged back in. Now to finalize the changes in my other programs. --- src/test/httpsrv/httpconnectionmonitor.cpp | 3 ++- src/test/httpsrv/httpconnectionmonitor.h | 2 +- src/test/httpsrv/main.cpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/test/httpsrv') 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() { } -bool HttpConnectionMonitor::onNewConnection( Connection *pCon ) +bool HttpConnectionMonitor::onNewConnection( Connection *pCon, int nPort ) { + printf("Got connection on port %d\n", nPort ); Http hp( pCon ); 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: HttpConnectionMonitor(); ~HttpConnectionMonitor(); - bool onNewConnection( Connection *pCon ); + bool onNewConnection( Connection *pCon, int nPort ); bool onClosedConnection( Connection *pCon ); }; 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() srv.setConnectionMonitor( &http ); - srv.startServer( 7331, 40 ); + printf("Listening on port 7331\n"); + srv.startServer( 7331 ); for(;;) { -- cgit v1.2.3