On 18 Dec 1998, Niels [ISO-8859-1] Möller wrote:
> Balazs Scheidler <[EMAIL PROTECTED]> writes:
>
> > since adding md5 hash to lsh took me about 5 minutes, I'm seeking a bit
> > more difficult problem... :-) so I am trying to add zlib packet
> > compression. I hope nobody else has began it.
>
> That's good. I started on zlib support early on, but didn't get very
> far. There's some code (zlib.c and zlib.h) is in the 19981118
> snapshot, but I don't think it is very useful.
>
> Some thoughts about compression support:
>
> With my old code, the plan was simply to have compressor objects
>
> (class
> (name zlib)
> (super abstract_write_pipe)
> (vars
> (state simple z_stream)))
>
> Hmm. But perhaps you want to follow the example of the crypto objects,
> and also use some object representing the zlib _algorithm_, and let
> that object have some method (analogous to MAKE_CRYPT) to create a
> compressor or decompressor objects. Say,
>
> MAKE_COMPRESSION(algorithm, inflate/deflate, level, [next])
I wanted to do it exactly this way.
>
> where the last argument is an abstract_write object where
> inflated/deflated packets should be sent (naturally, that makes sense
> only of you choose to operate like an abstract_write_pipe).
ok.
--- Bazsi