From fbe26b0e48e6f3714900833174fcf42196e86fc8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 15 Sep 2008 02:19:06 +0200 Subject: Identifikationsinformationen im ConnectionManager speichern --- src/Core/ConnectionManager.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Core/ConnectionManager.h') 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(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); }; } -- cgit v1.2.3