diff options
Diffstat (limited to 'src/Net/Listener.h')
-rw-r--r-- | src/Net/Listener.h | 14 |
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); }; |