aboutsummaryrefslogtreecommitdiff
path: root/src/stable/multiserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/multiserver.cpp')
-rw-r--r--src/stable/multiserver.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/stable/multiserver.cpp b/src/stable/multiserver.cpp
index 8856117..bb1cacc 100644
--- a/src/stable/multiserver.cpp
+++ b/src/stable/multiserver.cpp
@@ -20,36 +20,36 @@ Bu::MultiServer::~MultiServer()
20} 20}
21 21
22void Bu::MultiServer::addProtocol( Bu::Protocol *(*proc)(), int iPort, 22void Bu::MultiServer::addProtocol( Bu::Protocol *(*proc)(), int iPort,
23 int nPoolSize ) 23 int nPoolSize )
24{ 24{
25 hProtos[iPort] = proc; 25 hProtos[iPort] = proc;
26 addPort( iPort, nPoolSize ); 26 addPort( iPort, nPoolSize );
27} 27}
28 28
29void Bu::MultiServer::addProtocol( Protocol *(*proc)(), const String &sAddr, 29void Bu::MultiServer::addProtocol( Protocol *(*proc)(), const String &sAddr,
30 int iPort, int nPoolSize ) 30 int iPort, int nPoolSize )
31{ 31{
32 hProtos[iPort] = proc; 32 hProtos[iPort] = proc;
33 addPort( sAddr, iPort, nPoolSize ); 33 addPort( sAddr, iPort, nPoolSize );
34} 34}
35 35
36void Bu::MultiServer::onNewConnection( Bu::Client *pClient, int nPort ) 36void Bu::MultiServer::onNewConnection( Bu::Client *pClient, int nPort )
37{ 37{
38 pClient->setProtocol( hProtos.get( nPort )() ); 38 pClient->setProtocol( hProtos.get( nPort )() );
39} 39}
40 40
41void Bu::MultiServer::onClosedConnection( Bu::Client *pClient ) 41void Bu::MultiServer::onClosedConnection( Bu::Client *pClient )
42{ 42{
43 delete pClient->getProtocol(); 43 delete pClient->getProtocol();
44} 44}
45 45
46void Bu::MultiServer::shutdown() 46void Bu::MultiServer::shutdown()
47{ 47{
48 Bu::Server::shutdown(); 48 Bu::Server::shutdown();
49} 49}
50 50
51void Bu::MultiServer::tick() 51void Bu::MultiServer::tick()
52{ 52{
53 Bu::Server::tick(); 53 Bu::Server::tick();
54} 54}
55 55