diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 22:26:31 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 22:26:31 +0200 |
commit | 2919e527e3e2c0bbdd35afe28c7da4b041ca25f1 (patch) | |
tree | 58e952b592c576e78a5160dce7e538603d0e4116 /src/Core/ConnectionManager.h | |
parent | 011eb079956c8b08db7b7ecff57503c436b39cbf (diff) | |
parent | 13fd1bb4f19e4791e000cb71cca2065820184bdb (diff) | |
download | mad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.tar mad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.zip |
Merge
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r-- | src/Core/ConnectionManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Core/ConnectionManager.h b/src/Core/ConnectionManager.h index 0832b5a..cd470d9 100644 --- a/src/Core/ConnectionManager.h +++ b/src/Core/ConnectionManager.h @@ -66,6 +66,8 @@ class ConnectionManager { void handleConnections(std::list<Net::ServerConnection*> &connections); + void updateState(const std::string &name, Common::HostInfo::State state); + public: static ConnectionManager* getConnectionManager() { return connectionManager.get(); @@ -75,7 +77,7 @@ class ConnectionManager { connectionManager = std::auto_ptr<ConnectionManager>(new ConnectionManager()); } - virtual ~ConnectionManager(); + ~ConnectionManager(); bool wait(int timeout) { return (poll(pollfds.data(), pollfds.size(), timeout) > 0); |