aboutsummaryrefslogtreecommitdiff
path: root/src/stable/multiserver.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/multiserver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stable/multiserver.h b/src/stable/multiserver.h
index b12aa90..2490427 100644
--- a/src/stable/multiserver.h
+++ b/src/stable/multiserver.h
@@ -15,6 +15,7 @@ namespace Bu
15{ 15{
16 class Protocol; 16 class Protocol;
17 class Client; 17 class Client;
18 class ServerSocket;
18 19
19 template<class T> 20 template<class T>
20 Protocol *genProtocol() 21 Protocol *genProtocol()
@@ -28,9 +29,7 @@ namespace Bu
28 MultiServer(); 29 MultiServer();
29 virtual ~MultiServer(); 30 virtual ~MultiServer();
30 31
31 void addProtocol( Protocol *(*proc)(), int iPort, int nPoolSize=40 ); 32 void addProtocol( Protocol *(*proc)(), ServerSocket *pServer );
32 void addProtocol( Protocol *(*proc)(), const String &sAddr, int iPort,
33 int nPoolSize=40 );
34 33
35 void scan() 34 void scan()
36 { 35 {
@@ -42,7 +41,8 @@ namespace Bu
42 Server::setTimeout( nTimeoutSec, nTimeoutUSec ); 41 Server::setTimeout( nTimeoutSec, nTimeoutUSec );
43 } 42 }
44 43
45 virtual void onNewConnection( Client *pClient, int nPort ); 44 virtual void onNewConnection( const Bu::ServerSocket *pSrv,
45 Client *pClient, Bu::Socket *pSocket );
46 virtual void onClosedConnection( Client *pClient ); 46 virtual void onClosedConnection( Client *pClient );
47 47
48 void shutdown(); 48 void shutdown();