14 #include "connectioncompression.h"
15 #include "compressionbase.h"
16 #include "compressiondefault.h"
23 m_connection( conn ), m_compression( 0 ), m_log( log )
31 m_connection( conn ), m_compression( 0 ), m_log( log )
48 m_connection = connection;
68 if( !m_compression->
init() )
82 return m_connection->
recv( timeout );
87 bool ConnectionCompression::send(
const std::string& data )
104 void ConnectionCompression::disconnect()
112 void ConnectionCompression::cleanup()
118 delete m_compression;
123 void ConnectionCompression::getStatistics(
long int& totalIn,
long int& totalOut )
129 ConnectionBase* ConnectionCompression::newInstance()
const
137 void ConnectionCompression::handleReceivedData(
const ConnectionBase* ,
const std::string& data )
143 void ConnectionCompression::handleConnect(
const ConnectionBase* )
149 void ConnectionCompression::handleDisconnect(
const ConnectionBase* ,
ConnectionError reason )
157 void ConnectionCompression::handleCompressedData(
const std::string& data )
160 m_connection->
send( data );
163 void ConnectionCompression::handleDecompressedData(
const std::string& data )