[Freeciv-Dev] Re: FREECIV_COMPRESSION_LEVEL
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, Jan 29, 2006 at 08:29:07PM +1300, banjo wrote:
> I'm having a go at writing a freeciv client in perl.
> I have some questions, is USE_COMPRESSION used?
> more importantly how can a client determine FREECIV_COMPRESSION_LEVEL?
yes I do believe it is used. I just skimmed over the code, (packets.c) and
it seems as though the receiver of the packet doesn't need to know the
compression level to uncompress whether it be the server or client.
see what's happening: change these defines:
#define BASIC_PACKET_LOG_LEVEL LOG_DEBUG
#define COMPRESS_LOG_LEVEL LOG_DEBUG
#define COMPRESS2_LOG_LEVEL LOG_DEBUG
The real question is: are you sure you want to do what you are doing? Many
have tried... (though not in perl).