Boost C++ Libraries: Ticket #5619: zlib: Add support for additional flush mode https://svn.boost.org/trac10/ticket/5619 <p> The zlib filter uses Z_SYNC_FLUSH which is the most widely used flush mode. However SSH requires Z_PARTIAL_FLUSH. For further information please see the "Partial Flush" paragraph at: www.bolet.org/~pornin/deflate-flush.html </p> <p> It would be trivial to add the new flush mode:<br /> </p> <p> <strong>File: zlib.hpp</strong><br /> </p> <p> Add <br /> BOOST_IOSTREAMS_DECL extern const int partial_flush;<br /> </p> <p> Add additional argument to zlib_params:<br /> </p> <blockquote> <p> zlib_params( <br /> </p> </blockquote> <blockquote> <blockquote> <p> int flush_mode = zlib::default_flush_mode<br /> </p> </blockquote> </blockquote> <p> add int flush_mode_ member to zlib_base<br /> </p> <p> init flush_mode_ member in zlib_base::do_init<br /> </p> <p> flush_mode_ = p.flush_mode;<br /> </p> <p> and in the filter function change the xinflate to:<br /> </p> <blockquote> <p> int result = xinflate(flush_mode_);<br /> </p> </blockquote> <p> <strong>File: zlib.cpp</strong><br /> </p> <p> const int partial_flush = Z_PARTIAL_FLUSH;<br /> </p> <p> const int default_flush_mode = sync_flush;<br /> </p> <p> <br /> </p> <p> Please let me know if there is an interest for the diff files. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5619 Trac 1.4.3