OverSim
|
A message parser for RealWorldTestMessages. More...
#include <RealWorldTestPacketParser.h>
Public Member Functions | |
char * | encapsulatePayload (cPacket *msg, unsigned int *length) |
Convert a cMessage to a data block for sending it to the tun device. | |
cPacket * | decapsulatePayload (char *buf, unsigned int length) |
Parses a block of data received from the tun device. | |
Public Member Functions inherited from PacketParser | |
virtual void | initialize () |
Called on initialisation. | |
virtual void | handleMessage (cMessage *msg) |
Is called if the modules receives a message. |
A message parser for RealWorldTestMessages.
Definition at line 40 of file RealWorldTestPacketParser.h.
|
virtual |
Parses a block of data received from the tun device.
Pure virtual function, has to be implemented by inherited classes.
buf | The data to be parsed |
length | The length of the data |
Implements PacketParser.
Definition at line 40 of file RealWorldTestPacketParser.cc.
|
virtual |
Convert a cMessage to a data block for sending it to the tun device.
Pure virtual function, has to be implemented by inherited classes.
msg | A pointer to the message to be converted |
length | A pointer to an integer that will hold the length of the data |
Implements PacketParser.
Definition at line 30 of file RealWorldTestPacketParser.cc.