aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
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/server.h
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/server.h2
1 files changed, 2 insertions, 0 deletions
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
68 virtual void onNewConnection( Client *pClient, int nPort )=0; 68 virtual void onNewConnection( Client *pClient, int nPort )=0;
69 virtual void onClosedConnection( Client *pClient )=0; 69 virtual void onClosedConnection( Client *pClient )=0;
70 70
71 void shutdown();
72
71 private: 73 private:
72 class SrvClientLink : public Bu::ClientLink 74 class SrvClientLink : public Bu::ClientLink
73 { 75 {