OverSim
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...

Macros

#define MSGC_VERSION   0x0402
#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

Macro Definition Documentation

#define MSGC_VERSION   0x0402

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 96 of file Quon_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
QuonMessage obj 
)
inline

Definition at line 148 of file Quon_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
QuonListMessage obj 
)
inline

Definition at line 198 of file Quon_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
QuonMoveMessage obj 
)
inline

Definition at line 241 of file Quon_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
QuonEventMessage obj 
)
inline

Definition at line 275 of file Quon_m.h.

{obj.parsimPack(b);}
void doUnpacking ( cCommBuffer *  b,
QuonSelfMessage obj 
)
inline

Definition at line 97 of file Quon_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
QuonMessage obj 
)
inline

Definition at line 149 of file Quon_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
QuonListMessage obj 
)
inline

Definition at line 199 of file Quon_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
QuonMoveMessage obj 
)
inline

Definition at line 242 of file Quon_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
QuonEventMessage obj 
)
inline

Definition at line 276 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.

Referenced by LoginCache::registerPos().