XmlBlasterZlibWriteBuffers Struct Reference

Helper struct to compress a byte buffer before putting it into the socket. More...

#include <xmlBlasterZlib.h>


Data Fields

int debug
 0: no debugging, 1: switch on debugging
z_stream c_stream
 zlib compression stream structure
Bytef compBuffer [20000]
 buffer to hold temporary the outgoing compressed bytes


Detailed Description

Helper struct to compress a byte buffer before putting it into the socket.

We need exactly one instance of this for each socket and the access must be synchronized to be thread safe.

Different instances of this struct are thread safe.

See also:
http://www.gzip.org/zlib/

Definition at line 34 of file xmlBlasterZlib.h.


Field Documentation

int XmlBlasterZlibWriteBuffers::debug

0: no debugging, 1: switch on debugging

Definition at line 35 of file xmlBlasterZlib.h.

Referenced by initConnection(), xmlBlaster_endZlibWriter(), xmlBlaster_initZlibWriter(), and xmlBlaster_writenCompressed().

z_stream XmlBlasterZlibWriteBuffers::c_stream

zlib compression stream structure

Definition at line 37 of file xmlBlasterZlib.h.

Referenced by dumpZlib(), xmlBlaster_endZlibWriter(), xmlBlaster_initZlibWriter(), and xmlBlaster_writenCompressed().

Bytef XmlBlasterZlibWriteBuffers::compBuffer[20000]

buffer to hold temporary the outgoing compressed bytes

Definition at line 38 of file xmlBlasterZlib.h.

Referenced by xmlBlaster_writenCompressed().


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