diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-06-02 22:50:28 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-06-02 22:50:28 +0200 |
commit | f79a215fce13d86a495b6741aae0827ccce43757 (patch) | |
tree | b7a6f61a6ab45cff81e1d7aedb248be56ad2ed7a /src/Net/Listener.h | |
parent | 95f2a6b40f5e9dc27be6609d3f7018b3342c4182 (diff) | |
download | mad-f79a215fce13d86a495b6741aae0827ccce43757.tar mad-f79a215fce13d86a495b6741aae0827ccce43757.zip |
Net-Namespace auf die neue Signal-Implementierung umgebaut
Diffstat (limited to 'src/Net/Listener.h')
-rw-r--r-- | src/Net/Listener.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Net/Listener.h b/src/Net/Listener.h index 2f45ea6..600fcf9 100644 --- a/src/Net/Listener.h +++ b/src/Net/Listener.h @@ -38,14 +38,13 @@ class Listener : boost::noncopyable { boost::asio::ip::tcp::acceptor acceptor; boost::asio::ssl::context sslContext; - std::map<boost::shared_ptr<Connection>, std::pair<Signals::Connection, Signals::Connection> > connections; + std::map<boost::shared_ptr<Connection>, std::pair<Signals::Connection2, Signals::Connection2> > connections; - Signals::Signal1<boost::shared_ptr<Connection> > signal; + Signals::Signal21<boost::shared_ptr<Connection> > signal; void handleAccept(const boost::system::error_code &error, boost::shared_ptr<Connection> con); void handleConnect(boost::shared_ptr<Connection> con); - void doHandleConnect(boost::shared_ptr<Connection> con); void handleDisconnect(boost::shared_ptr<Connection> con); public: @@ -53,10 +52,10 @@ class Listener : boost::noncopyable { const boost::asio::ip::tcp::endpoint &address0 = boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 6666)) throw(Exception); virtual ~Listener(); - Signals::Connection connectSignalNewConnection(const Signals::Signal1<boost::shared_ptr<Connection> >::slot_type &slot) { + Signals::Connection2 connectSignalNewConnection(const Signals::Signal21<boost::shared_ptr<Connection> >::slot_type &slot) { return signal.connect(slot); } - void disconnectSignalNewConnection(const Signals::Connection &connection) { + void disconnectSignalNewConnection(const Signals::Connection2 &connection) { signal.disconnect(connection); } }; |