diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-03-12 16:21:25 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-03-12 16:21:25 +0000 |
commit | 14a460c60b162aefaf1798c71ac790ad574e739f (patch) | |
tree | 2e9920d5f671a55f5ec380787eca34c62f97afef /src/multiserver.cpp | |
parent | 3667cec1f612e6a37479f99bd1fa23d92af7cff7 (diff) | |
download | libbu++-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.cpp | 5 |
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 | ||
46 | void Bu::MultiServer::shutdown() | ||
47 | { | ||
48 | Bu::Server::shutdown(); | ||
49 | } | ||
50 | |||