21 lines
497 B
C++
21 lines
497 B
C++
#pragma once
|
|
|
|
#include "Packet.h"
|
|
|
|
namespace ts {
|
|
namespace connection {
|
|
class CompressionHandler {
|
|
public:
|
|
CompressionHandler();
|
|
virtual ~CompressionHandler();
|
|
|
|
bool progressPacketOut(protocol::BasicPacket*, std::string&);
|
|
bool progressPacketIn(protocol::BasicPacket*, std::string&);
|
|
|
|
size_t max_packet_size = 16 * 1024;
|
|
private:
|
|
bool compress(protocol::BasicPacket*, std::string &error);
|
|
bool decompress(protocol::BasicPacket*, std::string &error);
|
|
};
|
|
}
|
|
} |