From 14a460c60b162aefaf1798c71ac790ad574e739f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 12 Mar 2010 16:21:25 +0000 Subject: 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. --- src/multiserver.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/multiserver.cpp') 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 ) delete pClient->getProtocol(); } +void Bu::MultiServer::shutdown() +{ + Bu::Server::shutdown(); +} + -- cgit v1.2.3