diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-10-10 15:04:28 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-10-10 15:04:28 +0200 |
commit | fcab8098d6a9a385e0e5edfb26f4abf615da77ca (patch) | |
tree | 7ae3ff0d47bab59a409ccebb036e339894493b80 /src/Net/Listener.h | |
parent | 535a6e799ee98e745c85c655c5db3279fd25c1bc (diff) | |
download | mad-fcab8098d6a9a385e0e5edfb26f4abf615da77ca.tar mad-fcab8098d6a9a385e0e5edfb26f4abf615da77ca.zip |
FdManager hinzugef?gt und Verbindungsklassen angepasst
Diffstat (limited to 'src/Net/Listener.h')
-rw-r--r-- | src/Net/Listener.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Net/Listener.h b/src/Net/Listener.h index 9c4ddab..a095439 100644 --- a/src/Net/Listener.h +++ b/src/Net/Listener.h @@ -24,7 +24,6 @@ #include <Common/Exception.h> #include <gnutls/gnutls.h> -#include <poll.h> #include <list> #include <vector> #include <map> @@ -45,6 +44,8 @@ class Listener { std::list<ServerConnection*> connections; + void acceptHandler(int); + // Prevent shallow copy Listener(const Listener &o); Listener& operator=(const Listener &o); @@ -53,9 +54,7 @@ class Listener { Listener(const std::string &x905CertFile0, const std::string &x905KeyFile0, const IPAddress &address0 = IPAddress()) throw(Common::Exception); virtual ~Listener(); - std::vector<struct pollfd> getPollfds() const; - - ServerConnection* getConnection(const std::map<int,const short*> &pollfdMap); + ServerConnection* getConnection(); }; } |