Contiki 2.6
|
Packet queue management. More...
#include "sys/ctimer.h"
#include "net/packetqueue.h"
Go to the source code of this file.
Functions | |
Packet queue functions. | |
void | packetqueue_init (struct packetqueue *q) |
Initialize a packet queue. | |
int | packetqueue_enqueue_packetbuf (struct packetqueue *q, clock_time_t lifetime, void *ptr) |
Enqueue a packetbuf on a packet queue. | |
struct packetqueue_item * | packetqueue_first (struct packetqueue *q) |
Access the first item on the packet buffer. | |
void | packetqueue_dequeue (struct packetqueue *q) |
Remove the first item on the packet buffer. | |
int | packetqueue_len (struct packetqueue *q) |
Get the length of the packet queue. | |
Packet queue item functions | |
struct queuebuf * | packetqueue_queuebuf (struct packetqueue_item *i) |
Access the queuebuf in a packet queue item. | |
void * | packetqueue_ptr (struct packetqueue_item *i) |
Access the user-defined pointer in a packet queue item. |
Packet queue management.
Definition in file packetqueue.c.