aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/httpsrv/httpconnectionmonitor.cpp3
-rw-r--r--src/test/httpsrv/httpconnectionmonitor.h2
-rw-r--r--src/test/httpsrv/main.cpp3
-rw-r--r--src/test/teltest/main.cpp2
-rw-r--r--src/test/teltest/telnetmonitor.cpp2
-rw-r--r--src/test/teltest/telnetmonitor.h2
6 files changed, 8 insertions, 6 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 {
diff --git a/src/test/teltest/main.cpp b/src/test/teltest/main.cpp
index ce968c4..5d3ec26 100644
--- a/src/test/teltest/main.cpp
+++ b/src/test/teltest/main.cpp
@@ -10,7 +10,7 @@ int main()
10 10
11 srv.setConnectionMonitor( &telnet ); 11 srv.setConnectionMonitor( &telnet );
12 12
13 srv.startServer( 4001, 40 ); 13 srv.startServer( 4001 );
14 14
15 for(;;) 15 for(;;)
16 { 16 {
diff --git a/src/test/teltest/telnetmonitor.cpp b/src/test/teltest/telnetmonitor.cpp
index 001932f..32c2924 100644
--- a/src/test/teltest/telnetmonitor.cpp
+++ b/src/test/teltest/telnetmonitor.cpp
@@ -36,7 +36,7 @@ LinkMessage* TelnetMonitor::processIRM( LinkMessage *pMsg )
36{ 36{
37} 37}
38 38
39bool TelnetMonitor::onNewConnection( Connection *pCon ) 39bool TelnetMonitor::onNewConnection( Connection *pCon, int nPort )
40{ 40{
41 ProtocolTelnet *pt = new ProtocolTelnet(); 41 ProtocolTelnet *pt = new ProtocolTelnet();
42 pCon->setProtocol( pt ); 42 pCon->setProtocol( pt );
diff --git a/src/test/teltest/telnetmonitor.h b/src/test/teltest/telnetmonitor.h
index 95c8493..ba5761e 100644
--- a/src/test/teltest/telnetmonitor.h
+++ b/src/test/teltest/telnetmonitor.h
@@ -16,7 +16,7 @@ public:
16 bool timeSlice(); 16 bool timeSlice();
17 LinkMessage* processIRM( LinkMessage *pMsgIn ); 17 LinkMessage* processIRM( LinkMessage *pMsgIn );
18 18
19 bool onNewConnection( Connection *pCon ); 19 bool onNewConnection( Connection *pCon, int nPort );
20 bool onClosedConnection( Connection *pCon ); 20 bool onClosedConnection( Connection *pCon );
21 21
22private: 22private: