diff options
Diffstat (limited to 'Swiften/Network/IncomingConnection.h')
-rw-r--r-- | Swiften/Network/IncomingConnection.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Swiften/Network/IncomingConnection.h b/Swiften/Network/IncomingConnection.h new file mode 100644 index 0000000..eaa2ad6 --- /dev/null +++ b/Swiften/Network/IncomingConnection.h @@ -0,0 +1,17 @@ +#pragma once + +#include <boost/signal.hpp> + +#include "Swiften/Base/ByteArray.h" + +namespace Swift { + class IncomingConnection { + public: + virtual ~IncomingConnection(); + + virtual void write(const ByteArray& data) = 0; + + //boost::signal<void (Error)> onError; + boost::signal<void (const ByteArray&)> onDataRead; + }; +} |