summaryrefslogtreecommitdiffstats
path: root/src/Net/Listener.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-06 03:15:06 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-06 03:15:06 +0200
commit7d5b81e9936b1c778fd6408f3f22478e9ab9486b (patch)
tree671e3f323d7298a5a0887302d6f1a397f5e0c1cd /src/Net/Listener.h
parentb961ec7011bb50785dbbc271592b84f3ebae6432 (diff)
downloadmad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.tar
mad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.zip
X.509-basierte TLS-Verbindung funktioniert
Diffstat (limited to 'src/Net/Listener.h')
-rw-r--r--src/Net/Listener.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Net/Listener.h b/src/Net/Listener.h
index 81260ed..63e12c6 100644
--- a/src/Net/Listener.h
+++ b/src/Net/Listener.h
@@ -27,6 +27,7 @@
#include <list>
#include <vector>
#include <map>
+#include <string>
namespace Mad {
namespace Net {
@@ -35,6 +36,7 @@ class ServerConnection;
class Listener {
private:
+ std::string x905CertFile, x905KeyFile;
IPAddress address;
int sock;
@@ -47,7 +49,7 @@ class Listener {
Listener& operator=(const Listener &o);
public:
- Listener(const IPAddress &address0 = IPAddress()) throw(ConnectionException);
+ Listener(const std::string &x905CertFile0, const std::string &x905KeyFile0, const IPAddress &address0 = IPAddress()) throw(ConnectionException);
virtual ~Listener();
std::vector<struct pollfd> getPollfds() const;