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
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss