summaryrefslogtreecommitdiffstats
path: root/src/Core/ConnectionManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r--src/Core/ConnectionManager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Core/ConnectionManager.h b/src/Core/ConnectionManager.h
index 6bbd66a..ad5a57e 100644
--- a/src/Core/ConnectionManager.h
+++ b/src/Core/ConnectionManager.h
@@ -25,6 +25,7 @@
#include <map>
#include <memory>
+#include <Common/Configurable.h>
#include <Common/Exception.h>
#include <Common/HostInfo.h>
#include <Common/RequestManager.h>
@@ -40,10 +41,13 @@ class Packet;
namespace Core {
-class ConnectionManager {
+class ConnectionManager : private Common::Configurable {
private:
static std::auto_ptr<ConnectionManager> connectionManager;
+ std::string x509TrustFile, x509CrlFile, x509CertFile, x509KeyFile;
+
+ std::vector<Net::IPAddress> listenerAddresses;
std::list<Net::Listener*> listeners;
std::list<Net::ServerConnection*> daemonConnections;
@@ -62,6 +66,10 @@ class ConnectionManager {
void updateState(const std::string &name, Common::HostInfo::State state);
+ protected:
+ virtual bool handleConfigEntry(const std::vector<std::string> &entry, const std::vector<std::vector<std::string> > &section);
+ virtual void configFinished();
+
public:
static ConnectionManager* getConnectionManager() {
return connectionManager.get();