This assumes that the host will use the same compression to send and receive packets. If there's a demonstrable use case we could later change it to have compress_fun and decompress_fun and have the consumer of the library supply the (de)compression functions.
PR adds zlib compression support.
A new configuration option is added to enet_host,
compression_mode
. e.g.:This assumes that the host will use the same compression to send and receive packets. If there's a demonstrable use case we could later change it to have
compress_fun
anddecompress_fun
and have the consumer of the library supply the (de)compression functions.