diff options
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&); |