diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-10-19 20:35:52 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-10-19 20:35:52 +0200 |
commit | 96b6f07a32cb02ae5d907bacd81f62fc25fdc278 (patch) | |
tree | 5f820da31f7e26dc6dba1db0d0347ee5190a6f0e /src/Core/ConnectionManager.h | |
parent | fa0a978ae129f0f04b9d336e9a3d71489fe519e8 (diff) | |
download | mad-96b6f07a32cb02ae5d907bacd81f62fc25fdc278.tar mad-96b6f07a32cb02ae5d907bacd81f62fc25fdc278.zip |
Neuen ConfigManager angefangen & alten Code daran angepasst
Diffstat (limited to 'src/Core/ConnectionManager.h')
-rw-r--r-- | src/Core/ConnectionManager.h | 10 |
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> > §ion); + virtual void configFinished(); + public: static ConnectionManager* getConnectionManager() { return connectionManager.get(); |