lsalzman / enet

ENet reliable UDP networking library
MIT License
2.73k stars 670 forks source link

ENet chance of corrupted data packet being undetected and causing ENET_EVENT_TYPE_RECEIVE event? #163

Closed playingoDEERUX closed 3 years ago

playingoDEERUX commented 3 years ago

Question in title, what's the chance that ENet checksum (and udp checksum) will be corrupted in a way to match the data too or any other collision that could happen?

Is it equal to TCP, or is it (slightly) worse?

Thanks in advance!

(note: this question may be stupid, but I just want to know some numbers as I am making a comparison of ENet and TCP)

lsalzman commented 3 years ago

The ENet checksum that ENet provides optionally (if you enable it) is CRC32 which should be about equivalent to TCP.