summaryrefslogtreecommitdiffstats
path: root/src/Core/ConnectionManager.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-29 22:26:31 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-29 22:26:31 +0200
commit2919e527e3e2c0bbdd35afe28c7da4b041ca25f1 (patch)
tree58e952b592c576e78a5160dce7e538603d0e4116 /src/Core/ConnectionManager.h
parent011eb079956c8b08db7b7ecff57503c436b39cbf (diff)
parent13fd1bb4f19e4791e000cb71cca2065820184bdb (diff)
downloadmad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.tar
mad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.zip
Merge
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r--src/Core/ConnectionManager.h4
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);