diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/stable/multiserver.cpp | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-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.cpp | 20 |
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 | ||
22 | void Bu::MultiServer::addProtocol( Bu::Protocol *(*proc)(), int iPort, | 22 | void 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 | ||
29 | void Bu::MultiServer::addProtocol( Protocol *(*proc)(), const String &sAddr, | 29 | void 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 | ||
36 | void Bu::MultiServer::onNewConnection( Bu::Client *pClient, int nPort ) | 36 | void 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 | ||
41 | void Bu::MultiServer::onClosedConnection( Bu::Client *pClient ) | 41 | void Bu::MultiServer::onClosedConnection( Bu::Client *pClient ) |
42 | { | 42 | { |
43 | delete pClient->getProtocol(); | 43 | delete pClient->getProtocol(); |
44 | } | 44 | } |
45 | 45 | ||
46 | void Bu::MultiServer::shutdown() | 46 | void Bu::MultiServer::shutdown() |
47 | { | 47 | { |
48 | Bu::Server::shutdown(); | 48 | Bu::Server::shutdown(); |
49 | } | 49 | } |
50 | 50 | ||
51 | void Bu::MultiServer::tick() | 51 | void Bu::MultiServer::tick() |
52 | { | 52 | { |
53 | Bu::Server::tick(); | 53 | Bu::Server::tick(); |
54 | } | 54 | } |
55 | 55 | ||