Telnet++
A C++ library for interacting with Telnet streams
Public Member Functions | List of all members
telnetpp::options::mccp::compressor Class Referenceabstract

Represents an object that can compress arbitrary byte sequences. More...

#include <compressor.hpp>

Inheritance diagram for telnetpp::options::mccp::compressor:
telnetpp::options::mccp::zlib::compressor

Public Member Functions

virtual ~compressor ()
 Destructor.
 
virtual telnetpp::u8stream compress (telnetpp::u8stream const &sequence)=0
 Compress the given byte sequence and return the compressed sequence. More...
 
virtual telnetpp::u8stream end_compression ()=0
 Ends the compression stream. More...
 

Detailed Description

Represents an object that can compress arbitrary byte sequences.

Member Function Documentation

virtual telnetpp::u8stream telnetpp::options::mccp::compressor::compress ( telnetpp::u8stream const &  sequence)
pure virtual

Compress the given byte sequence and return the compressed sequence.

Implemented in telnetpp::options::mccp::zlib::compressor.

virtual telnetpp::u8stream telnetpp::options::mccp::compressor::end_compression ( )
pure virtual

Ends the compression stream.

Compressing further will cause the stream to restart.

Implemented in telnetpp::options::mccp::zlib::compressor.


The documentation for this class was generated from the following file: