#include <omnetpp.h>
#include <NodeHandle.h>
#include <QuonDefs.h>
#include <QuonHelper.h>
#include <CommonMessages_m.h>
Go to the source code of this file.
Classes | |
class | QuonSelfMessage |
Class generated from overlay/quon/Quon.msg by opp_msgc. More... | |
class | QuonMessage |
Class generated from overlay/quon/Quon.msg by opp_msgc. More... | |
class | QuonListMessage |
Class generated from overlay/quon/Quon.msg by opp_msgc. More... | |
class | QuonMoveMessage |
Class generated from overlay/quon/Quon.msg by opp_msgc. More... | |
class | QuonEventMessage |
Class generated from overlay/quon/Quon.msg by opp_msgc. More... | |
Defines | |
#define | MSGC_VERSION 0x0401 |
#define | QUON_L(msg) (QUONCOMMAND_L + QUONENTRY_L + KEY_L + QUONAOI_L) |
#define | QUONLIST_L(msg) (QUON_L(msg) + QUONENTRYCOUNT_L + msg->getNeighborHandleArraySize() * QUONENTRY_L) |
#define | QUONMOVE_L(msg) (QUONLIST_L(msg) + QUONPOSITION_L + QUONFLAG_L) |
#define | QUONENTRY_L (NODEHANDLE_L + QUONPOSITION_L) |
Enumerations | |
enum | QUONCommand { JOIN_REQUEST = 0, JOIN_ACKNOWLEDGE = 1, NODE_MOVE = 2, NEW_NEIGHBORS = 3, NODE_LEAVE = 4, QUON_EVENT = 5 } |
Enum generated from | |
Functions | |
void | doPacking (cCommBuffer *b, QuonSelfMessage &obj) |
void | doUnpacking (cCommBuffer *b, QuonSelfMessage &obj) |
void | doPacking (cCommBuffer *b, QuonMessage &obj) |
void | doUnpacking (cCommBuffer *b, QuonMessage &obj) |
void | doPacking (cCommBuffer *b, QuonListMessage &obj) |
void | doUnpacking (cCommBuffer *b, QuonListMessage &obj) |
void | doPacking (cCommBuffer *b, QuonMoveMessage &obj) |
void | doUnpacking (cCommBuffer *b, QuonMoveMessage &obj) |
void | doPacking (cCommBuffer *b, QuonEventMessage &obj) |
void | doUnpacking (cCommBuffer *b, QuonEventMessage &obj) |
Variables | |
static const int | QUONCOMMAND_L = 8 |
static const int | QUONPOSITION_L = 128 |
static const int | QUONAOI_L = 64 |
static const int | QUONENTRYCOUNT_L = 32 |
static const int | QUONFLAG_L = 1 |
#define QUON_L | ( | msg | ) | (QUONCOMMAND_L + QUONENTRY_L + KEY_L + QUONAOI_L) |
Definition at line 29 of file Quon_m.h.
Referenced by Quon::handleJoin().
#define QUONENTRY_L (NODEHANDLE_L + QUONPOSITION_L) |
Definition at line 32 of file Quon_m.h.
Referenced by Quon::handleMove().
#define QUONLIST_L | ( | msg | ) | (QUON_L(msg) + QUONENTRYCOUNT_L + msg->getNeighborHandleArraySize() * QUONENTRY_L) |
Definition at line 30 of file Quon_m.h.
Referenced by Quon::handleInvalidNode(), Quon::handleJoinRequest(), Quon::handleNodeGracefulLeaveNotification(), and Quon::handleNodeMove().
#define QUONMOVE_L | ( | msg | ) | (QUONLIST_L(msg) + QUONPOSITION_L + QUONFLAG_L) |
Definition at line 31 of file Quon_m.h.
Referenced by Quon::handleJoinAcknowledge(), Quon::handleMove(), and Quon::processBackupTimer().
enum QUONCommand |
Enum generated from overlay/quon/Quon.msg
by opp_msgc.
enum QUONCommand { JOIN_REQUEST = 0; JOIN_ACKNOWLEDGE = 1; NODE_MOVE = 2; NEW_NEIGHBORS = 3; NODE_LEAVE = 4; QUON_EVENT = 5; }
Definition at line 51 of file Quon_m.h.
{ JOIN_REQUEST = 0, JOIN_ACKNOWLEDGE = 1, NODE_MOVE = 2, NEW_NEIGHBORS = 3, NODE_LEAVE = 4, QUON_EVENT = 5 };
void doPacking | ( | cCommBuffer * | b, | |
QuonSelfMessage & | obj | |||
) | [inline] |
Definition at line 92 of file Quon_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
QuonListMessage & | obj | |||
) | [inline] |
Definition at line 186 of file Quon_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
QuonEventMessage & | obj | |||
) | [inline] |
Definition at line 255 of file Quon_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
QuonMessage & | obj | |||
) | [inline] |
Definition at line 140 of file Quon_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
QuonMoveMessage & | obj | |||
) | [inline] |
Definition at line 225 of file Quon_m.h.
{obj.parsimPack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
QuonListMessage & | obj | |||
) | [inline] |
Definition at line 187 of file Quon_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
QuonSelfMessage & | obj | |||
) | [inline] |
Definition at line 93 of file Quon_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
QuonEventMessage & | obj | |||
) | [inline] |
Definition at line 256 of file Quon_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
QuonMoveMessage & | obj | |||
) | [inline] |
Definition at line 226 of file Quon_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
QuonMessage & | obj | |||
) | [inline] |
Definition at line 141 of file Quon_m.h.
{obj.parsimUnpack(b);}
const int QUONCOMMAND_L = 8 [static] |
const int QUONENTRYCOUNT_L = 32 [static] |
const int QUONFLAG_L = 1 [static] |
const int QUONPOSITION_L = 128 [static] |