PionNetworkLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pion::spdy::decompressor Class Reference

#include <decompressor.hpp>

Public Types

enum  data_size_t { MAX_UNCOMPRESSED_DATA_BUF_SIZE = 16384 }
 data size constants More...
 

Public Member Functions

 decompressor ()
 constructs a new decompressor object (default constructor) More...
 
 ~decompressor ()
 destructor More...
 
char * decompress (const char *compressed_data_ptr, boost::uint32_t stream_id, const spdy_control_frame_info &frame, boost::uint32_t header_block_length)
 

Protected Member Functions

bool spdy_decompress_header (const char *compressed_data_ptr, z_streamp decomp, boost::uint32_t length, boost::uint32_t &uncomp_length)
 

Detailed Description

SPDYDecompressor : Decompresses SPDY frames

Member Enumeration Documentation

data size constants

Enumerator
MAX_UNCOMPRESSED_DATA_BUF_SIZE 

maximum size of an uncompressed spdy header

Constructor & Destructor Documentation

pion::spdy::decompressor::decompressor ( )

constructs a new decompressor object (default constructor)

pion::spdy::decompressor::~decompressor ( )

destructor

Member Function Documentation

char * pion::spdy::decompressor::decompress ( const char *  compressed_data_ptr,
boost::uint32_t  stream_id,
const spdy_control_frame_info frame,
boost::uint32_t  header_block_length 
)

decompresses the http content

Returns
the uncompressed string, or null on failure

Get our decompressor.

References spdy_decompress_header(), SPDY_HEADERS, SPDY_SYN_REPLY, SPDY_SYN_STREAM, and pion::spdy::spdy_control_frame_info::type.

bool pion::spdy::decompressor::spdy_decompress_header ( const char *  compressed_data_ptr,
z_streamp  decomp,
boost::uint32_t  length,
boost::uint32_t &  uncomp_length 
)
protected

decompresses the spdy header

Returns
true if successful

References MAX_UNCOMPRESSED_DATA_BUF_SIZE.

Referenced by decompress().


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