[Tinyos-help] Send Queue
Philip Levis
pal at cs.stanford.edu
Fri Jan 2 10:17:49 PST 2009
On Dec 16, 2008, at 4:52 AM, fhg07 at c3sl.ufpr.br wrote:
> Hello !
>
> I would like to know if there is already an interface that provides a
> method of queuing packets I want to send. I searched very quickly
> for it
> but did not find anything, and anyway, I though it would be better
> to ask
> here before start implementing something that could possibly be
> unnecessary.
> I am currently using tinyOS 2.x.
You want to use a combination of PoolC and QueueC. If you look at tos/
lib/net/ctp/CtpForwardingEngineP.nc, you'll see an example of them
being used. The Pool is the memory allocator for messages, and the
Queue is the queue itself.
Phil
More information about the Tinyos-help
mailing list