Re: simple transport protocol
- From: "Roman Mashak" <mrv@xxxxxxxx>
- Date: Mon, 26 May 2008 10:31:35 -0700
Hello, Willem!
You wrote on Sun, 25 May 2008 09:53:23 +0000 (UTC):
W> Well it depends on the type of checksum. But here's a simple example:
W> Suppose the checksum is a simple sum modulo 256.
Some misunderstanding of terms: you sum up the values to be transmitted and
then apply operation of module 256? It means 'sum % 256' in C language for
example, but according to your example what you do is: '256 - sum'
Perhaps the checksum method you provided as an example uses another meaning
of modulo ?
W> We want to send the values: 2 5 8 10 15 20
W> So, the total of what we send is this:
length |> data | crc
W> 0 7 2 5 8 10 15 20 196
With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx
.
- Follow-Ups:
- Re: simple transport protocol
- From: Willem
- Re: simple transport protocol
- References:
- simple transport protocol
- From: Roman Mashak
- Re: simple transport protocol
- From: Willem
- Re: simple transport protocol
- From: Roman Mashak
- Re: simple transport protocol
- From: Willem
- simple transport protocol
- Prev by Date: Re: simple transport protocol
- Next by Date: Re: In-place algorithm
- Previous by thread: Re: simple transport protocol
- Next by thread: Re: simple transport protocol
- Index(es):
Relevant Pages
|