aboutsummaryrefslogtreecommitdiff
path: root/src/multiserver.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-03-12 16:21:25 +0000
committerMike Buland <eichlan@xagasoft.com>2010-03-12 16:21:25 +0000
commit14a460c60b162aefaf1798c71ac790ad574e739f (patch)
tree2e9920d5f671a55f5ec380787eca34c62f97afef /src/multiserver.cpp
parent3667cec1f612e6a37479f99bd1fa23d92af7cff7 (diff)
downloadlibbu++-14a460c60b162aefaf1798c71ac790ad574e739f.tar.gz
libbu++-14a460c60b162aefaf1798c71ac790ad574e739f.tar.bz2
libbu++-14a460c60b162aefaf1798c71ac790ad574e739f.tar.xz
libbu++-14a460c60b162aefaf1798c71ac790ad574e739f.zip
The server and multiserver now support a shutdown() function which calls
onCloseConnection on each client before cleaning it up, allowing for smooth cleanup. Later we may want to add a nicer version with a timeout for pending data to be transmitted and the like. This one is pretty harsh.
Diffstat (limited to '')
-rw-r--r--src/multiserver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/multiserver.cpp b/src/multiserver.cpp
index ad7855a..dd2da3b 100644
--- a/src/multiserver.cpp
+++ b/src/multiserver.cpp
@@ -43,3 +43,8 @@ void Bu::MultiServer::onClosedConnection( Bu::Client *pClient )
43 delete pClient->getProtocol(); 43 delete pClient->getProtocol();
44} 44}
45 45
46void Bu::MultiServer::shutdown()
47{
48 Bu::Server::shutdown();
49}
50