Thrift: Zlib transport.
authorDavid Reiss <dreiss@apache.org>
Sat, 15 Sep 2007 01:44:47 +0000 (01:44 +0000)
committerDavid Reiss <dreiss@apache.org>
Sat, 15 Sep 2007 01:44:47 +0000 (01:44 +0000)
commitb8c6334d99acdc36eda81a1105f7760fd16cb3e5
tree02301766af0b034a2126cc6e46a1e37bcacbf242
parent3d029786cda9ecc549e57c0a9a07bfaa454cb34d
Thrift: Zlib transport.

Summary:
Add a new transport to the C++ library: TZLibTransport.
This wraps another transport (just like TBufferedTransport),
compresses the data written to it, and uncompresses the data it reads.

Reviewed By: mcslee

Test Plan:
For ax_lib_zlib.m4
 - Ran ./bootstrap.sh.
 - Looked at configure.
 - Ran ./configure.
 - Looked at config.status
 - Ran ./configure --with-zlib=/usr.
 - Looked at config.status
 - Changed configure.ac to AC_LIB_ZLIB(1.2.4)
 - Ran ./configure.
 - Watched it fail.

For TZlibTransport
 - test/ZlibTest.cpp
 - Code coverage (hotness) report sent with review.
 - 100% line coverage for all the good stuff.

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665262 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/Makefile.am
lib/cpp/aclocal/ax_event_base.m4
lib/cpp/aclocal/ax_lib_zlib.m4 [new file with mode: 0644]
lib/cpp/configure.ac
lib/cpp/src/Thrift.h
lib/cpp/src/transport/TTransportException.h
lib/cpp/src/transport/TZlibTransport.cpp [new file with mode: 0644]
lib/cpp/src/transport/TZlibTransport.h [new file with mode: 0644]
test/DebugProtoTest.thrift
test/ZlibTest.cpp [new file with mode: 0644]