[Tinyos-help] inconsistency with C message library API
David Gay
dgay42 at gmail.com
Mon Aug 20 08:59:27 PDT 2007
On 8/20/07, Ákos Maróy <darkeye at tyrell.hu> wrote:
> I wonder if it would be better to have specificy types defined for these
> different purposes. that way, API usage would be more straightforward,
> as one would know right away what is contained in what type..
While I understand your concern, this scheme with multiple embedded
types follows the standard(*) scheme for a layered network stack: each
layer has a packet layout (aka type) which is embedded in the "data"
field of the packet layout of the layer below.
*: "standard" here does really mean "essentially the whole world does
it this way" (e.g., TCP/IP, but I can't think of a counterexample at
this point ;-)).
David Gay
More information about the Tinyos-help
mailing list