Classes | Defines | Enumerations | Functions | Variables

Quon_m.h File Reference

#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 overlay/quon/Quon.msg by opp_msgc.

More...

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 Documentation

#define MSGC_VERSION   0x0401

Definition at line 11 of file Quon_m.h.

#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)
#define QUONMOVE_L (   msg  )     (QUONLIST_L(msg) + QUONPOSITION_L + QUONFLAG_L)

Enumeration Type Documentation

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;
 }
 
Enumerator:
JOIN_REQUEST 
JOIN_ACKNOWLEDGE 
NODE_MOVE 
NEW_NEIGHBORS 
NODE_LEAVE 
QUON_EVENT 

Definition at line 51 of file Quon_m.h.


Function Documentation

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);}


Variable Documentation

const int QUONAOI_L = 64 [static]

Definition at line 25 of file Quon_m.h.

const int QUONCOMMAND_L = 8 [static]

Definition at line 23 of file Quon_m.h.

const int QUONENTRYCOUNT_L = 32 [static]

Definition at line 26 of file Quon_m.h.

const int QUONFLAG_L = 1 [static]

Definition at line 27 of file Quon_m.h.

const int QUONPOSITION_L = 128 [static]

Definition at line 24 of file Quon_m.h.