14 #ifndef SOCKS5BYTESTREAM_H__
15 #define SOCKS5BYTESTREAM_H__
17 #include "messagefilter.h"
18 #include "iqhandler.h"
20 #include "socks5bytestreammanager.h"
21 #include "connectiondatahandler.h"
29 class SOCKS5BytestreamDataHandler;
58 bool isOpen()
const {
return m_open; }
87 bool send(
const std::string& data );
101 const std::string&
sid()
const {
return m_sid; }
144 { m_socks5BytestreamDataHandler = s5bdh; }
149 void removeSOCKS5BytestreamDataHandler()
150 { m_socks5BytestreamDataHandler = 0; }
153 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
163 LogSink& logInstance,
const JID& initiator,
const JID& target,
164 const std::string& sid );
172 const JID m_initiator;
184 #endif // SOCKS5BYTESTREAM_H__