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

Go to the source code of this file.

Classes

class  PastryStateMessage
class  PastryFindNodeExtData
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryNewLeafsMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastrySendState
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryJoinCall
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryJoinResponse
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestStateCall
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestStateResponse
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestRepairCall
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestRepairResponse
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestLeafSetCall
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestLeafSetResponse
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestRoutingRowCall
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  RequestRoutingRowResponse
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define PASTRY_L(msg)   (BASEOVERLAY_L(msg) + PASTRYTYPE_L)
#define PASTRYSTATE_L(msg)
#define PASTRYNEWLEAFS_L(msg)
#define PASTRYJOINCALL_L(msg)   PASTRY_L(msg)
#define PASTRYJOINRESPONSE_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTSTATECALL_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTSTATERESPONSE_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTREPAIRCALL_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTREPAIRRESPONSE_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTLEAFSETCALL_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTLEAFSETRESPONSE_L(msg)   PASTRY_L(msg)
#define PASTRYREQUESTROUTINGROWCALL_L(msg)   (PASTRY_L(msg) + ROWNUMBER_L)
#define PASTRYREQUESTROUTINGROWRESPONSE_L(msg)   PASTRY_L(msg)

Enumerations

enum  PastryStateMsgType {
  PASTRY_STATE_STD = 0x01, PASTRY_STATE_JOIN = 0x02, PASTRY_STATE_MINJOIN = 0x04, PASTRY_STATE_UPDATE = 0x08,
  PASTRY_STATE_REPAIR = 0x10, PASTRY_STATE_JOINUPDATE = 0x20, PASTRY_STATE_LEAFSET = 0x40, PASTRY_STATE_ROUTINGROW = 0x80
}
 Enum generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, PastryStateMessage &obj)
void doUnpacking (cCommBuffer *b, PastryStateMessage &obj)
void doPacking (cCommBuffer *b, PastryFindNodeExtData &obj)
void doUnpacking (cCommBuffer *b, PastryFindNodeExtData &obj)
void doPacking (cCommBuffer *b, PastryNewLeafsMessage &obj)
void doUnpacking (cCommBuffer *b, PastryNewLeafsMessage &obj)
void doPacking (cCommBuffer *b, PastrySendState &obj)
void doUnpacking (cCommBuffer *b, PastrySendState &obj)
void doPacking (cCommBuffer *b, PastryJoinCall &obj)
void doUnpacking (cCommBuffer *b, PastryJoinCall &obj)
void doPacking (cCommBuffer *b, PastryJoinResponse &obj)
void doUnpacking (cCommBuffer *b, PastryJoinResponse &obj)
void doPacking (cCommBuffer *b, RequestStateCall &obj)
void doUnpacking (cCommBuffer *b, RequestStateCall &obj)
void doPacking (cCommBuffer *b, RequestStateResponse &obj)
void doUnpacking (cCommBuffer *b, RequestStateResponse &obj)
void doPacking (cCommBuffer *b, RequestRepairCall &obj)
void doUnpacking (cCommBuffer *b, RequestRepairCall &obj)
void doPacking (cCommBuffer *b, RequestRepairResponse &obj)
void doUnpacking (cCommBuffer *b, RequestRepairResponse &obj)
void doPacking (cCommBuffer *b, RequestLeafSetCall &obj)
void doUnpacking (cCommBuffer *b, RequestLeafSetCall &obj)
void doPacking (cCommBuffer *b, RequestLeafSetResponse &obj)
void doUnpacking (cCommBuffer *b, RequestLeafSetResponse &obj)
void doPacking (cCommBuffer *b, RequestRoutingRowCall &obj)
void doUnpacking (cCommBuffer *b, RequestRoutingRowCall &obj)
void doPacking (cCommBuffer *b, RequestRoutingRowResponse &obj)
void doUnpacking (cCommBuffer *b, RequestRoutingRowResponse &obj)

Variables

static const int PASTRYTYPE_L = 8
static const int LASTHOPFLAG_L = 8
static const int TIMESTAMP_L = 32
static const int ROWNUMBER_L = 16
static const int PASTRYFINDNODEEXTDATA_L = NODEHANDLE_L + HOPCOUNT_L

Macro Definition Documentation

#define MSGC_VERSION   0x0402

Definition at line 11 of file PastryMessage_m.h.

#define PASTRY_L (   msg)    (BASEOVERLAY_L(msg) + PASTRYTYPE_L)

Definition at line 29 of file PastryMessage_m.h.

#define PASTRYJOINCALL_L (   msg)    PASTRY_L(msg)

Definition at line 40 of file PastryMessage_m.h.

Referenced by Pastry::changeState().

#define PASTRYJOINRESPONSE_L (   msg)    PASTRY_L(msg)

Definition at line 41 of file PastryMessage_m.h.

Referenced by Pastry::handlePastryJoinCall().

#define PASTRYNEWLEAFS_L (   msg)
Value:
(msg->getLeafsArraySize() * NODEHANDLE_L + \
ARRAYSIZE_L)

Definition at line 37 of file PastryMessage_m.h.

Referenced by PastryLeafSet::getNewLeafsMessage().

#define PASTRYREQUESTLEAFSETCALL_L (   msg)    PASTRY_L(msg)
#define PASTRYREQUESTLEAFSETRESPONSE_L (   msg)    PASTRY_L(msg)

Definition at line 50 of file PastryMessage_m.h.

Referenced by BasePastry::handleRequestLeafSetCall().

#define PASTRYREQUESTREPAIRCALL_L (   msg)    PASTRY_L(msg)
#define PASTRYREQUESTREPAIRRESPONSE_L (   msg)    PASTRY_L(msg)

Definition at line 47 of file PastryMessage_m.h.

Referenced by Pastry::handleRequestRepairCall().

#define PASTRYREQUESTROUTINGROWCALL_L (   msg)    (PASTRY_L(msg) + ROWNUMBER_L)
#define PASTRYREQUESTROUTINGROWRESPONSE_L (   msg)    PASTRY_L(msg)

Definition at line 53 of file PastryMessage_m.h.

Referenced by BasePastry::handleRequestRoutingRowCall().

#define PASTRYREQUESTSTATECALL_L (   msg)    PASTRY_L(msg)

Definition at line 43 of file PastryMessage_m.h.

#define PASTRYREQUESTSTATERESPONSE_L (   msg)    PASTRY_L(msg)

Definition at line 44 of file PastryMessage_m.h.

Referenced by Pastry::handleRequestStateCall().

#define PASTRYSTATE_L (   msg)
Value:
(msg->getRoutingTableArraySize() + msg->getLeafSetArraySize() \
+ msg->getNeighborhoodSetArraySize()) + 3 * ARRAYSIZE_L + HOPCOUNT_L + \

Definition at line 31 of file PastryMessage_m.h.

Referenced by BasePastry::createStateMessage().

Enumeration Type Documentation

Enum generated from overlay/pastry/PastryMessage.msg by opp_msgc.

Class generated from overlay/pastry/PastryMessage.msg by opp_msgc.

enum PastryStateMsgType
{
    PASTRY_STATE_STD        = 0x01;
    PASTRY_STATE_JOIN       = 0x02;
    PASTRY_STATE_MINJOIN    = 0x04;
    PASTRY_STATE_UPDATE     = 0x08;
    PASTRY_STATE_REPAIR     = 0x10;
    PASTRY_STATE_JOINUPDATE = 0x20;
    PASTRY_STATE_LEAFSET    = 0x40;
    PASTRY_STATE_ROUTINGROW = 0x80;
}
packet PastryStateMessage extends BaseOverlayMessage
{
    int pastryStateMsgType ) = PASTRY_STATE_STD;    
    NodeHandle sender = NodeHandle::UNSPECIFIED_NODE;    
    NodeHandle routingTable[];    
    NodeHandle leafSet[];         
    NodeHandle neighborhoodSet[]; 
    int row = 0;                  
    bool lastHop = false;         
    simtime_t timestamp;          
}
Enumerator:
PASTRY_STATE_STD 
PASTRY_STATE_JOIN 
PASTRY_STATE_MINJOIN 
PASTRY_STATE_UPDATE 
PASTRY_STATE_REPAIR 
PASTRY_STATE_JOINUPDATE 
PASTRY_STATE_LEAFSET 
PASTRY_STATE_ROUTINGROW 

Definition at line 74 of file PastryMessage_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
PastryStateMessage obj 
)
inline

Definition at line 161 of file PastryMessage_m.h.

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

Definition at line 204 of file PastryMessage_m.h.

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

Definition at line 246 of file PastryMessage_m.h.

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

Definition at line 285 of file PastryMessage_m.h.

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

Definition at line 319 of file PastryMessage_m.h.

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

Definition at line 353 of file PastryMessage_m.h.

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

Definition at line 387 of file PastryMessage_m.h.

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

Definition at line 421 of file PastryMessage_m.h.

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

Definition at line 455 of file PastryMessage_m.h.

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

Definition at line 489 of file PastryMessage_m.h.

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

Definition at line 523 of file PastryMessage_m.h.

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

Definition at line 557 of file PastryMessage_m.h.

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

Definition at line 595 of file PastryMessage_m.h.

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

Definition at line 629 of file PastryMessage_m.h.

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

Definition at line 162 of file PastryMessage_m.h.

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

Definition at line 205 of file PastryMessage_m.h.

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

Definition at line 247 of file PastryMessage_m.h.

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

Definition at line 286 of file PastryMessage_m.h.

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

Definition at line 320 of file PastryMessage_m.h.

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

Definition at line 354 of file PastryMessage_m.h.

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

Definition at line 388 of file PastryMessage_m.h.

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

Definition at line 422 of file PastryMessage_m.h.

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

Definition at line 456 of file PastryMessage_m.h.

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

Definition at line 490 of file PastryMessage_m.h.

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

Definition at line 524 of file PastryMessage_m.h.

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

Definition at line 558 of file PastryMessage_m.h.

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

Definition at line 596 of file PastryMessage_m.h.

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

Definition at line 630 of file PastryMessage_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int LASTHOPFLAG_L = 8
static

Definition at line 24 of file PastryMessage_m.h.

const int PASTRYFINDNODEEXTDATA_L = NODEHANDLE_L + HOPCOUNT_L
static

Definition at line 27 of file PastryMessage_m.h.

Referenced by BasePastry::createLookup().

const int PASTRYTYPE_L = 8
static

Definition at line 23 of file PastryMessage_m.h.

const int ROWNUMBER_L = 16
static

Definition at line 26 of file PastryMessage_m.h.

const int TIMESTAMP_L = 32
static

Definition at line 25 of file PastryMessage_m.h.