#include <PacketProxy.h>
Public Member Functions | |
PacketProxy () | |
virtual | ~PacketProxy () |
Static Public Member Functions | |
static uint8_t | getMessageType (msgHeader *header) |
static void | debugMessage (const char *, int) |
static void | printConfigMessage (const char *) |
static void | printRegisterMessage (const char *) |
static void | printPlainMessage (const char *) |
static void | printDataMessage (const char *) |
Protected Member Functions | |
virtual void | initialize () |
virtual void | handleMessage (cMessage *msg) |
void | processRegistrationMsg (registrationMsg *msg) |
void | processDeregistrationMsg (plainMsg *msg) |
void | processDataMsg (dataMsg *msg) |
void | processConfigurationMsg (configMsg *msg) |
Definition at line 23 of file PacketProxy.h.
PacketProxy::PacketProxy | ( | ) |
Constructor
Definition at line 20 of file PacketProxy.cc.
PacketProxy::~PacketProxy | ( | ) | [virtual] |
Destructor
Definition at line 28 of file PacketProxy.cc.
void PacketProxy::debugMessage | ( | const char * | msg, | |
int | length | |||
) | [static] |
Print message
Definition at line 184 of file PacketProxy.cc.
unsigned char PacketProxy::getMessageType | ( | msgHeader * | header | ) | [static] |
Return message type
Definition at line 175 of file PacketProxy.cc.
void PacketProxy::handleMessage | ( | cMessage * | msg | ) | [protected, virtual] |
PacketProxy is only notified when the scheduler receives a UDP packet. Check the buffer for the message type then act accordingly. If unknown message, discard it.
Definition at line 55 of file PacketProxy.cc.
void PacketProxy::initialize | ( | ) | [protected, virtual] |
Initialize PacketProxy at simulation startup
Definition at line 37 of file PacketProxy.cc.
void PacketProxy::printConfigMessage | ( | const char * | message | ) | [static] |
Definition at line 204 of file PacketProxy.cc.
void PacketProxy::printDataMessage | ( | const char * | message | ) | [static] |
Definition at line 350 of file PacketProxy.cc.
void PacketProxy::printPlainMessage | ( | const char * | message | ) | [static] |
Definition at line 331 of file PacketProxy.cc.
void PacketProxy::printRegisterMessage | ( | const char * | msg | ) | [static] |
Definition at line 261 of file PacketProxy.cc.
void PacketProxy::processConfigurationMsg | ( | configMsg * | msg | ) | [protected] |
Dispose wireless device parameter change
Definition at line 154 of file PacketProxy.cc.
void PacketProxy::processDataMsg | ( | dataMsg * | msg | ) | [protected] |
If host is registered send wlanPkt via host's MsgHandler to model
Definition at line 92 of file PacketProxy.cc.
void PacketProxy::processDeregistrationMsg | ( | plainMsg * | msg | ) | [protected] |
If host is registered remove host modul and ack
Definition at line 137 of file PacketProxy.cc.
void PacketProxy::processRegistrationMsg | ( | registrationMsg * | msg | ) | [protected] |
If host is registered acknowlege registration, else register host
Definition at line 113 of file PacketProxy.cc.