[ENet-discuss] 1.2.2 and 1.3.0 *PRE*-release

Philip Bennefall philip at pbsoundscape.net
Thu May 20 18:37:25 PDT 2010


Ah, in that case I'll just leave the checksum disabled. Thank you for the 
compression example, quite simple. Am now Off to incorporate this into my 
engine. Thanks again!

Kind regards,

Philip Bennefall
----- Original Message ----- 
From: "Lee Salzman" <lsalzman1 at cox.net>
To: "Discussion of the ENet library" <enet-discuss at cubik.org>
Sent: Friday, May 21, 2010 3:29 AM
Subject: Re: [ENet-discuss] 1.2.2 and 1.3.0 *PRE*-release


> Note that the checksum functionality was always there, but disabled unless 
> you explicitly enabled it in the configure script, so if you never needed 
> it before, chances are you probably don't need it still. UDP is giving you 
> an underlying 16 bit checksum, although it is not particularly strong, 
> which I have found good enough for Sauerbraten's purposes. It depends on 
> whether you want to lose the 4 bytes per packet I just saved you. :)
>
> But to enable checksums:
>    host -> checksum = enet_crc32;
>
> To enable compression:
>    enet_host_compress_with_range_coder (host);
>
> Lee
>
> Philip Bennefall wrote:
>> Hi Lee,
>>
>> Thank you, this cleared up some questions for me also.
>>
>> Looking at the new API for 2.3, it's not very clear to me how I would go 
>> about using the checksum and compression features. Could you possibly 
>> give a quick code example of how to initialize ENet with these two 
>> features enabled, using the compressor and checksum algorithms provided 
>> with the library?
>>
>> Thanks!
>>
>> Kind regards,
>>
>> Philip Bennefall
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss 



More information about the ENet-discuss mailing list