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/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index f4b2da6..d83c346 100644 --- a/src/server.h +++ b/src/server.h @@ -68,6 +68,8 @@ namespace Bu virtual void onNewConnection( Client *pClient, int nPort )=0; virtual void onClosedConnection( Client *pClient )=0; + void shutdown(); + private: class SrvClientLink : public Bu::ClientLink { -- cgit v1.2.3