OverSim
BrooseMessage_m.h File Reference
#include <omnetpp.h>
#include <IPvXAddress.h>
#include <NodeHandle.h>
#include <CommonMessages_m.h>
#include <OverlayKey.h>

Go to the source code of this file.

Classes

class  BucketCall
 Class generated from overlay/broose/BrooseMessage.msg by opp_msgc. More...
class  BucketResponse
 Class generated from overlay/broose/BrooseMessage.msg by opp_msgc. More...
class  BrooseFindNodeExtMessage
 Class generated from overlay/broose/BrooseMessage.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define BUCKETCALL_L(msg)   (BASECALL_L(msg) + INDEX_L + BUCKETTYPE_L + PROTOSTATE_L)
#define BUCKETRESPONSE_L(msg)
#define BROOSEFINDNODEEXTMESSAGE_L   (KEY_L + STEP_L + RIGHTSHIFTING_L + NODEHANDLE_L)

Enumerations

enum  BucketType { RIGHT = 0, LEFT = 1, BROTHER = 2 }
 Enum generated from overlay/broose/BrooseMessage.msg by opp_msgc. More...
enum  ProState { PINIT = 0, PRSET = 1, PBSET = 2, PREADY = 3 }
 Enum generated from overlay/broose/BrooseMessage.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, BucketCall &obj)
void doUnpacking (cCommBuffer *b, BucketCall &obj)
void doPacking (cCommBuffer *b, BucketResponse &obj)
void doUnpacking (cCommBuffer *b, BucketResponse &obj)
void doPacking (cCommBuffer *b, BrooseFindNodeExtMessage &obj)
void doUnpacking (cCommBuffer *b, BrooseFindNodeExtMessage &obj)

Variables

static const int INDEX_L = 8
static const int BUCKETTYPE_L = 2
static const int PROTOSTATE_L = 2
static const int STEP_L = 8
static const int RIGHTSHIFTING_L = 1
static const int NODENUM_L = 8

Macro Definition Documentation

#define BROOSEFINDNODEEXTMESSAGE_L   (KEY_L + STEP_L + RIGHTSHIFTING_L + NODEHANDLE_L)

Definition at line 33 of file BrooseMessage_m.h.

Referenced by Broose::findNode().

#define BUCKETCALL_L (   msg)    (BASECALL_L(msg) + INDEX_L + BUCKETTYPE_L + PROTOSTATE_L)

Definition at line 30 of file BrooseMessage_m.h.

Referenced by Broose::changeState(), and Broose::handleJoinTimerExpired().

#define BUCKETRESPONSE_L (   msg)
Value:
+ msg->getNodesArraySize() * NODEHANDLE_L)

Definition at line 31 of file BrooseMessage_m.h.

Referenced by Broose::handleBucketRequestRpc().

#define MSGC_VERSION   0x0402

Definition at line 11 of file BrooseMessage_m.h.

Enumeration Type Documentation

enum BucketType

Enum generated from overlay/broose/BrooseMessage.msg by opp_msgc.

enum BucketType
{

RIGHT = 0;
LEFT = 1;
BROTHER = 2;

}

Enumerator:
RIGHT 
LEFT 
BROTHER 

Definition at line 50 of file BrooseMessage_m.h.

{
RIGHT = 0,
LEFT = 1,
BROTHER = 2
};
enum ProState

Enum generated from overlay/broose/BrooseMessage.msg by opp_msgc.

enum ProState
{

PINIT = 0;
PRSET = 1;
PBSET = 2;
PREADY = 3;

}

Enumerator:
PINIT 
PRSET 
PBSET 
PREADY 

Definition at line 69 of file BrooseMessage_m.h.

{
PINIT = 0,
PRSET = 1,
PBSET = 2,
PREADY = 3
};

Function Documentation

void doPacking ( cCommBuffer *  b,
BucketCall obj 
)
inline

Definition at line 119 of file BrooseMessage_m.h.

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

Definition at line 161 of file BrooseMessage_m.h.

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

Definition at line 217 of file BrooseMessage_m.h.

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

Definition at line 120 of file BrooseMessage_m.h.

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

Definition at line 162 of file BrooseMessage_m.h.

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

Definition at line 218 of file BrooseMessage_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int BUCKETTYPE_L = 2
static

Definition at line 24 of file BrooseMessage_m.h.

const int INDEX_L = 8
static

Definition at line 23 of file BrooseMessage_m.h.

const int NODENUM_L = 8
static

Definition at line 28 of file BrooseMessage_m.h.

const int PROTOSTATE_L = 2
static

Definition at line 25 of file BrooseMessage_m.h.

const int RIGHTSHIFTING_L = 1
static

Definition at line 27 of file BrooseMessage_m.h.

const int STEP_L = 8
static

Definition at line 26 of file BrooseMessage_m.h.