SOCKS5Bytestream::SOCKS5Bytestream( SOCKS5BytestreamManager* manager, ConnectionBase* connection, LogSink& logInstance, const JID& initiator, const JID& target, const std::string& sid ) : m_manager( manager ), m_connection( 0 ), m_socks5( 0 ), m_logInstance( logInstance ), m_socks5BytestreamDataHandler( 0 ), m_initiator( initiator ), m_target( target ), m_sid( sid ), m_open( false ) { setConnectionImpl( connection ); }
SOCKS5Bytestream::SOCKS5Bytestream( SOCKS5BytestreamManager* manager, ConnectionBase* connection, LogSink& logInstance, const JID& initiator, const JID& target, const std::string& sid ) : Bytestream( Bytestream::S5B, logInstance, initiator, target, sid ), m_manager( manager ), m_connection( 0 ), m_socks5( 0 ), m_connected( false ) { if( connection && connection->state() == StateConnected ) m_open = true; setConnectionImpl( connection ); }