diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-14 17:27:32 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-14 17:27:32 (GMT) |
commit | ee3a46975986865fe5064f9d87a27277fc6c235a (patch) | |
tree | 51bae2ed1669ca881f761ca7547fbaf22432ae12 /Swiften/StreamStack | |
parent | c34f50d3371f47c88d2ee927a5d59af8e135304c (diff) | |
download | swift-contrib-ee3a46975986865fe5064f9d87a27277fc6c235a.zip swift-contrib-ee3a46975986865fe5064f9d87a27277fc6c235a.tar.bz2 |
Consolidating IncomingConnection & Connection.
BoostConnections no longer have their own thread, but are managed from
a central Boost IO thread instead.
Diffstat (limited to 'Swiften/StreamStack')
-rw-r--r-- | Swiften/StreamStack/IncomingConnectionLayer.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Swiften/StreamStack/IncomingConnectionLayer.h b/Swiften/StreamStack/IncomingConnectionLayer.h deleted file mode 100644 index c1a9eab..0000000 --- a/Swiften/StreamStack/IncomingConnectionLayer.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include <boost/signal.hpp> - -#include "Swiften/StreamStack/LowLayer.h" -#include "Swiften/Network/IncomingConnection.h" - -namespace Swift { - class IncomingConnectionLayer : public LowLayer { - public: - IncomingConnectionLayer(IncomingConnection* connection) : connection_(connection) { - connection_->onDataRead.connect(onDataRead); - } - - void writeData(const ByteArray& data) { - connection_->write(data); - } - - private: - IncomingConnection* connection_; - }; -} |