// $Id: ZIP.h,v 1.1.4.2 2006/05/31 21:49:29 sommer Exp $ // // See the file "COPYING" in the main distribution directory for copyright. #ifndef zip_h #define zip_h #include "config.h" #ifdef HAVE_LIBZ #include "zlib.h" #include "TCP.h" class ZIP_Analyzer : public TCP_SupportAnalyzer { public: enum Method { GZIP, DEFLATE }; ZIP_Analyzer(Connection* conn, bool orig, Method method = GZIP); ~ZIP_Analyzer(); virtual void Done(); virtual void DeliverStream(int len, const u_char* data, bool orig); protected: enum { NONE, ZIP_OK, ZIP_FAIL }; z_stream* zip; int zip_status; Method method; }; #endif #endif