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

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

#include <compressor.hpp>

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

Classes

struct  impl
 

Public Member Functions

 compressor ()
 Constructor.
 
 ~compressor () override
 Destructor.
 
- Public Member Functions inherited from telnetpp::options::mccp::codec
virtual ~codec ()=default
 Destructor.
 
void start ()
 Starts the transformation stream. Calls to operator() now assume that the input requires transformation.
 
void finish (continuation const &cont)
 Finishes the current decompression stream. Calls to operator() now assume that the input does not require transformation.
 
void operator() (telnetpp::bytes data, continuation const &cont)
 Transform data, if the stream is started, sending the result of the transformation to the continuation. If the stream is not started, the data is passed on untransformed. More...
 

Additional Inherited Members

- Public Types inherited from telnetpp::options::mccp::codec
using continuation = std::function< void(telnetpp::bytes data, bool continuation_ended)>
 

Detailed Description

Represents an object that can compress arbitrary byte sequences.


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