Wiselib
Public Member Functions
wiselib::MessageQueue Class Reference

A buffer for messages received from a Radio, and a factory for Message objects. More...

#include <MessageQueue.h>

List of all members.

Public Member Functions

 MessageQueue ()
virtual ~MessageQueue ()
void receiveBuffer (Radio::node_id_t from, Radio::size_t len, Radio::block_data_t *buf)
 A callback for a Radio class that receives a radio message and queues a Message objects that represents it.
MessagenextMessage ()
 Extract the next message from this queue.

Detailed Description

A buffer for messages received from a Radio, and a factory for Message objects.


Constructor & Destructor Documentation

wiselib::MessageQueue::MessageQueue ( )
wiselib::MessageQueue::~MessageQueue ( ) [virtual]

Member Function Documentation

Message * wiselib::MessageQueue::nextMessage ( )

Extract the next message from this queue.

Returns:
the next message in the queue.
void wiselib::MessageQueue::receiveBuffer ( Radio::node_id_t  from,
Radio::size_t  len,
Radio::block_data_t buf 
)

A callback for a Radio class that receives a radio message and queues a Message objects that represents it.

Parameters:
fromthe node that sent this message

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines