aboutsummaryrefslogtreecommitdiff
path: root/src/stable/multiserver.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
commitec05778d5718a7912e506764d443a78d6a6179e3 (patch)
tree78a9a01532180030c095acefc45763f07c14edb8 /src/stable/multiserver.cpp
parentb20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff)
downloadlibbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip
Converted tabs to spaces with tabconv.
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