[Tinyos-devel] Packet.clear()

David Gay dgay42 at gmail.com
Wed Oct 17 11:04:57 PDT 2007


On 10/17/07, Miklos Maroti <mmaroti at math.u-szeged.hu> wrote:
> If the message to be sent is statically allocated in a component and
> its ownership does not change (other than passing via Send.send), then
> Packet.clear need not be called. In this case ALL metadata used for
> transmission MUST NOT be changed by the Send implementation.

Presumablt this exception should be extended to only returning it via
Receive.receive.

And in both cases it should be clear that this only applies to "things
going to the same comm stack", i.e., if you have 2 Send's, then you
must use clear if you don't know that they go the same stack.
Hopefully you should be able to switch between Receive and Send for
the same comm stack...

David


More information about the Tinyos-devel mailing list