diff options
Diffstat (limited to '')
-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 | ||