diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-10-10 15:04:28 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-10-10 15:04:28 +0200 |
commit | fcab8098d6a9a385e0e5edfb26f4abf615da77ca (patch) | |
tree | 7ae3ff0d47bab59a409ccebb036e339894493b80 /src/Core/ConnectionManager.h | |
parent | 535a6e799ee98e745c85c655c5db3279fd25c1bc (diff) | |
download | mad-fcab8098d6a9a385e0e5edfb26f4abf615da77ca.tar mad-fcab8098d6a9a385e0e5edfb26f4abf615da77ca.zip |
FdManager hinzugef?gt und Verbindungsklassen angepasst
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r-- | src/Core/ConnectionManager.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Core/ConnectionManager.h b/src/Core/ConnectionManager.h index 4f3ff67..6bbd66a 100644 --- a/src/Core/ConnectionManager.h +++ b/src/Core/ConnectionManager.h @@ -24,7 +24,6 @@ #include <vector> #include <map> #include <memory> -#include <poll.h> #include <Common/Exception.h> #include <Common/HostInfo.h> @@ -53,17 +52,12 @@ class ConnectionManager { std::map<std::string,Common::HostInfo> daemonInfo; std::map<std::string,Net::ServerConnection*> identifiedDaemonConnections; - std::vector<struct pollfd> pollfds; - std::map<int,const short*> pollfdMap; - // Prevent shallow copy ConnectionManager(const ConnectionManager &o); ConnectionManager& operator=(const ConnectionManager &o); ConnectionManager(); - void refreshPollfds(); - void handleConnections(std::list<Net::ServerConnection*> &connections); void updateState(const std::string &name, Common::HostInfo::State state); @@ -79,10 +73,6 @@ class ConnectionManager { ~ConnectionManager(); - bool wait(int timeout) { - return (poll(pollfds.data(), pollfds.size(), timeout) > 0); - } - void run(); Net::Connection* getDaemonConnection(const std::string &name) const throw (Common::Exception&); |