On Sat, Jun 27, 2009 at 12:44 AM, bharat naik<[email protected]> wrote:
> Hi,
>
>      I was thinking of a making a simple modification to the
> MultiHopEngineM.nc module for my project. I basically want to buffer data
> packets, both forwarded and originated, when the parent fails and keep them
> buffered till a new parent is found.
>
>      However, I'm not sure what the MultiHopEngine is currently doing.
>
>      Firstly, I am not able to understand why the return type of
> ReceiveMsg.receive is TOS_MsgPtr? What it does is, from what I've
> understood, forward intercepted packets, store them in a buffer and return
> pointer to packet which it replaced in the buffer. What does it do with this
> pointer?

Page 48 of this book goes into the details about why Receive returns a
pointer to a TOS msg:
http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf

- om_p

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to