summaryrefslogtreecommitdiffstats
path: root/src/Net/Listener.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-07-07 01:12:19 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-07-07 01:12:19 +0200
commit30f0cb9154306938250bd77ce2f0a9471065732a (patch)
treeeed6304d1c07d6ea5177520e095315a8b3c6856d /src/Net/Listener.h
parentab391a3989b15c51e5b21cbcdd4f7caff8c6ec2b (diff)
downloadmad-30f0cb9154306938250bd77ce2f0a9471065732a.tar
mad-30f0cb9154306938250bd77ce2f0a9471065732a.zip
Benutze *-Listener, wenn keiner konfiguriert ist
Diffstat (limited to 'src/Net/Listener.h')
-rw-r--r--src/Net/Listener.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Net/Listener.h b/src/Net/Listener.h
index 30fde63..81260ed 100644
--- a/src/Net/Listener.h
+++ b/src/Net/Listener.h
@@ -37,21 +37,21 @@ class Listener {
private:
IPAddress address;
int sock;
-
+
gnutls_dh_params_t dh_params;
-
+
std::list<ServerConnection*> connections;
-
+
// Prevent shallow copy
Listener(const Listener &o);
Listener& operator=(const Listener &o);
-
+
public:
- Listener(const IPAddress &address0) throw(ConnectionException);
+ Listener(const IPAddress &address0 = IPAddress()) throw(ConnectionException);
virtual ~Listener();
-
+
std::vector<struct pollfd> getPollfds() const;
-
+
ServerConnection* getConnection(const std::map<int,const short*> &pollfdMap);
};