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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/multiserver.h') diff --git a/src/multiserver.h b/src/multiserver.h index 2938e0b..fc8305f 100644 --- a/src/multiserver.h +++ b/src/multiserver.h @@ -45,6 +45,8 @@ namespace Bu virtual void onNewConnection( Client *pClient, int nPort ); virtual void onClosedConnection( Client *pClient ); + void shutdown(); + private: Bu::Hash hProtos; }; -- cgit v1.2.3