MessageDecoder Class Reference

Decoder for OLSR protocol messages. More...

#include <message.hh>

List of all members.

Public Member Functions

Messagedecode (uint8_t *ptr, size_t len) throw (InvalidMessage)
void register_decoder (Message *message)

Private Attributes

map< OlsrTypes::MessageType,
Message * > 
UnknownMessage _olsrv1_unknown

Detailed Description

Decoder for OLSR protocol messages.

Empty messages are registered with this class in a producer/consumer pattern. When adding a new message class, make sure in its decode() method that you are storing the message properties in the message you've created -- not the fields of the empty message registered with this class.

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