Re: simple transport protocol



Hello, Willem!
You wrote on Sat, 24 May 2008 09:16:32 +0000 (UTC):

W> To make it easier for the target size, you calculate what byte(s) to add
W> at the end so that the calculated checksum turns out to be 0. This,
I don't quite understand here. Are you saying CRC is to be added at the end
of message?

W> coupled with including the CRC size in the header length, makes it
W> easier to implement the receiver: just calculate the CRC over the given
W> data with the given length, and check if the result is 0. The receiver
W> doesn't need to know what size the CRC is supposed to be.
Aha, it's quite reasonable, as checksum calculating functions usually have
the length of data chunk as parameter. This length may be taken from the
message's header.

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.