diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-15 02:19:06 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-15 02:19:06 +0200 |
commit | fbe26b0e48e6f3714900833174fcf42196e86fc8 (patch) | |
tree | 0f9528f2ad25c50e55a13e6fd60bf545f48ebf88 /src/Core/ConnectionManager.h | |
parent | 082dac7a8cb39ec1b005680680c4f3e1e8ddc256 (diff) | |
download | mad-fbe26b0e48e6f3714900833174fcf42196e86fc8.tar mad-fbe26b0e48e6f3714900833174fcf42196e86fc8.zip |
Identifikationsinformationen im ConnectionManager speichern
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r-- | src/Core/ConnectionManager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Core/ConnectionManager.h b/src/Core/ConnectionManager.h index 4ca3d59..6e098b6 100644 --- a/src/Core/ConnectionManager.h +++ b/src/Core/ConnectionManager.h @@ -70,12 +70,12 @@ class ConnectionManager { return connectionManager.get(); } - virtual ~ConnectionManager(); - - void init() { + static void init() { connectionManager = std::auto_ptr<ConnectionManager>(new ConnectionManager()); } + virtual ~ConnectionManager(); + bool wait(int timeout) { return (poll(pollfds.data(), pollfds.size(), timeout) > 0); } @@ -83,6 +83,7 @@ class ConnectionManager { void run(); Net::Connection* getDaemonConnection(const std::string &name) const; + void identifyDaemonConnection(Net::Connection *connection, const std::string &name); }; } |