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  PastryMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryJoinMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryStateMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
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  PastryLeafsetMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryRoutingRowRequestMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryRoutingRowMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
class  PastryRequestMessage
 Class generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...

Defines

#define MSGC_VERSION   0x0400
#define TRANSPORTADDRESS_L   (IPADDR_L + UDPPORT_L)
#define PASTRY_L(msg)   (BASEOVERLAY_L(msg) + PASTRYTYPE_L)
#define PASTRYJOIN_L(msg)   (PASTRY_L(msg) + TRANSPORTADDRESS_L + SIZEOF_INT)
#define PASTRYREQ_L(msg)   (PASTRY_L(msg) + TRANSPORTADDRESS_L + PASTRYREQUESTTYPE_L)
#define PASTRYSTATE_L(msg)
#define PASTRYNEWLEAFS_L(msg)   (msg->getLeafsArraySize() * NODEHANDLE_L)
#define PASTRYLEAFSET_L(msg)
#define PASTRYRTREQ_L(msg)   (PASTRY_L(msg) + TRANSPORTADDRESS_L)
#define PASTRYRTABLE_L(msg)

Enumerations

enum  PastryMsgType {
  PASTRY_MSG_STD = 0, PASTRY_MSG_JOIN = 1, PASTRY_MSG_STATE = 2, PASTRY_MSG_REQ = 3,
  PASTRY_MSG_LEAFSET = 4, PASTRY_MSG_ROWREQ = 5, PASTRY_MSG_RROW = 6, PASTRY_MSG_LEAFSET_PULL = 7,
  PASTRY_REQ_REPAIR = 8, PASTRY_REQ_STATE = 9, PASTRY_REQ_LEAFSET = 10
}
 Enum generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...
enum  PastryStateMsgType {
  PASTRY_STATE_STD = 0, PASTRY_STATE_JOIN = 1, PASTRY_STATE_UPDATE = 2, PASTRY_STATE_REPAIR = 3,
  PASTRY_STATE_JOINUPDATE = 4
}
 Enum generated from overlay/pastry/PastryMessage.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, PastryMessage &obj)
void doUnpacking (cCommBuffer *b, PastryMessage &obj)
void doPacking (cCommBuffer *b, PastryJoinMessage &obj)
void doUnpacking (cCommBuffer *b, PastryJoinMessage &obj)
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, PastryLeafsetMessage &obj)
void doUnpacking (cCommBuffer *b, PastryLeafsetMessage &obj)
void doPacking (cCommBuffer *b, PastryRoutingRowRequestMessage &obj)
void doUnpacking (cCommBuffer *b, PastryRoutingRowRequestMessage &obj)
void doPacking (cCommBuffer *b, PastryRoutingRowMessage &obj)
void doUnpacking (cCommBuffer *b, PastryRoutingRowMessage &obj)
void doPacking (cCommBuffer *b, PastryRequestMessage &obj)
void doUnpacking (cCommBuffer *b, PastryRequestMessage &obj)

Variables

static const int PASTRYTYPE_L = 8
static const int PASTRYSTATETYPE_L = 8
static const int PASTRYREQUESTTYPE_L = 0
static const int SIZEOF_INT = 32
static const int PASTRYFINDNODEEXTDATA_L = NODEHANDLE_L + 8 * SIZEOF_INT


Define Documentation

#define MSGC_VERSION   0x0400

Definition at line 11 of file PastryMessage_m.h.

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

Definition at line 31 of file PastryMessage_m.h.

#define PASTRYJOIN_L ( msg   )     (PASTRY_L(msg) + TRANSPORTADDRESS_L + SIZEOF_INT)

Definition at line 32 of file PastryMessage_m.h.

Referenced by Pastry::changeState().

#define PASTRYLEAFSET_L ( msg   ) 

Value:

(PASTRY_L(msg) + TRANSPORTADDRESS_L \
                + NODEHANDLE_L * \
                msg->getLeafSetArraySize())

Definition at line 42 of file PastryMessage_m.h.

Referenced by Bamboo::changeState(), and BasePastry::sendLeafset().

#define PASTRYNEWLEAFS_L ( msg   )     (msg->getLeafsArraySize() * NODEHANDLE_L)

Definition at line 40 of file PastryMessage_m.h.

Referenced by PastryLeafSet::getNewLeafsMessage().

#define PASTRYREQ_L ( msg   )     (PASTRY_L(msg) + TRANSPORTADDRESS_L + PASTRYREQUESTTYPE_L)

Definition at line 33 of file PastryMessage_m.h.

Referenced by BasePastry::sendRequest().

#define PASTRYRTABLE_L ( msg   ) 

Value:

(PASTRY_L(msg) + TRANSPORTADDRESS_L \
                + NODEHANDLE_L * \
                msg->getRoutingTableArraySize())

Definition at line 46 of file PastryMessage_m.h.

Referenced by BasePastry::sendRoutingRow().

#define PASTRYRTREQ_L ( msg   )     (PASTRY_L(msg) + TRANSPORTADDRESS_L)

#define PASTRYSTATE_L ( msg   ) 

Value:

(PASTRY_L(msg) + TRANSPORTADDRESS_L \
                + NODEHANDLE_L * \
                (msg->getRoutingTableArraySize() + msg->getLeafSetArraySize() \
                + msg->getNeighborhoodSetArraySize()) + 8 * SIZEOF_INT + \
                8 * sizeof(bool) + 8 * sizeof(simtime_t))

Definition at line 34 of file PastryMessage_m.h.

Referenced by BasePastry::sendStateTables().

#define TRANSPORTADDRESS_L   (IPADDR_L + UDPPORT_L)

Definition at line 29 of file PastryMessage_m.h.


Enumeration Type Documentation

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

 enum PastryMsgType
 {

     PASTRY_MSG_STD = 0;
     PASTRY_MSG_JOIN = 1;
     PASTRY_MSG_STATE = 2;
     PASTRY_MSG_REQ = 3;
     PASTRY_MSG_LEAFSET = 4;	
     PASTRY_MSG_ROWREQ = 5;
     PASTRY_MSG_RROW = 6;
     PASTRY_MSG_LEAFSET_PULL = 7;
     PASTRY_REQ_REPAIR = 8;
     PASTRY_REQ_STATE = 9;
     PASTRY_REQ_LEAFSET = 10;
 }
 
Enumerator:
PASTRY_MSG_STD 
PASTRY_MSG_JOIN 
PASTRY_MSG_STATE 
PASTRY_MSG_REQ 
PASTRY_MSG_LEAFSET 
PASTRY_MSG_ROWREQ 
PASTRY_MSG_RROW 
PASTRY_MSG_LEAFSET_PULL 
PASTRY_REQ_REPAIR 
PASTRY_REQ_STATE 
PASTRY_REQ_LEAFSET 

Definition at line 74 of file PastryMessage_m.h.

00074                    {
00075     PASTRY_MSG_STD = 0,
00076     PASTRY_MSG_JOIN = 1,
00077     PASTRY_MSG_STATE = 2,
00078     PASTRY_MSG_REQ = 3,
00079     PASTRY_MSG_LEAFSET = 4,
00080     PASTRY_MSG_ROWREQ = 5,
00081     PASTRY_MSG_RROW = 6,
00082     PASTRY_MSG_LEAFSET_PULL = 7,
00083     PASTRY_REQ_REPAIR = 8,
00084     PASTRY_REQ_STATE = 9,
00085     PASTRY_REQ_LEAFSET = 10
00086 };

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

 enum PastryStateMsgType
 {

     PASTRY_STATE_STD = 0;
     PASTRY_STATE_JOIN = 1;
     PASTRY_STATE_UPDATE = 2;
     PASTRY_STATE_REPAIR = 3;
     PASTRY_STATE_JOINUPDATE = 4;
 }
 
Enumerator:
PASTRY_STATE_STD 
PASTRY_STATE_JOIN 
PASTRY_STATE_UPDATE 
PASTRY_STATE_REPAIR 
PASTRY_STATE_JOINUPDATE 

Definition at line 102 of file PastryMessage_m.h.

00102                         {
00103     PASTRY_STATE_STD = 0,
00104     PASTRY_STATE_JOIN = 1,
00105     PASTRY_STATE_UPDATE = 2,
00106     PASTRY_STATE_REPAIR = 3,
00107     PASTRY_STATE_JOINUPDATE = 4
00108 };


Function Documentation

void doPacking ( cCommBuffer *  b,
PastryRequestMessage obj 
) [inline]

Definition at line 548 of file PastryMessage_m.h.

00548 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryRoutingRowMessage obj 
) [inline]

Definition at line 509 of file PastryMessage_m.h.

00509 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryRoutingRowRequestMessage obj 
) [inline]

Definition at line 457 of file PastryMessage_m.h.

00457 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryLeafsetMessage obj 
) [inline]

Definition at line 417 of file PastryMessage_m.h.

00417 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastrySendState obj 
) [inline]

Definition at line 364 of file PastryMessage_m.h.

00364 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryNewLeafsMessage obj 
) [inline]

Definition at line 329 of file PastryMessage_m.h.

00329 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryFindNodeExtData obj 
) [inline]

Definition at line 291 of file PastryMessage_m.h.

00291 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryStateMessage obj 
) [inline]

Definition at line 252 of file PastryMessage_m.h.

00252 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryJoinMessage obj 
) [inline]

Definition at line 177 of file PastryMessage_m.h.

00177 {obj.parsimPack(b);}

void doPacking ( cCommBuffer *  b,
PastryMessage obj 
) [inline]

Definition at line 141 of file PastryMessage_m.h.

00141 {obj.parsimPack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryRequestMessage obj 
) [inline]

Definition at line 549 of file PastryMessage_m.h.

00549 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryRoutingRowMessage obj 
) [inline]

Definition at line 510 of file PastryMessage_m.h.

00510 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryRoutingRowRequestMessage obj 
) [inline]

Definition at line 458 of file PastryMessage_m.h.

00458 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryLeafsetMessage obj 
) [inline]

Definition at line 418 of file PastryMessage_m.h.

00418 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastrySendState obj 
) [inline]

Definition at line 365 of file PastryMessage_m.h.

00365 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryNewLeafsMessage obj 
) [inline]

Definition at line 330 of file PastryMessage_m.h.

00330 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryFindNodeExtData obj 
) [inline]

Definition at line 292 of file PastryMessage_m.h.

00292 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryStateMessage obj 
) [inline]

Definition at line 253 of file PastryMessage_m.h.

00253 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryJoinMessage obj 
) [inline]

Definition at line 178 of file PastryMessage_m.h.

00178 {obj.parsimUnpack(b);}

void doUnpacking ( cCommBuffer *  b,
PastryMessage obj 
) [inline]

Definition at line 142 of file PastryMessage_m.h.

00142 {obj.parsimUnpack(b);}


Variable Documentation

const int PASTRYFINDNODEEXTDATA_L = NODEHANDLE_L + 8 * SIZEOF_INT [static]

Definition at line 39 of file PastryMessage_m.h.

Referenced by BasePastry::createLookup().

const int PASTRYREQUESTTYPE_L = 0 [static]

Definition at line 26 of file PastryMessage_m.h.

const int PASTRYSTATETYPE_L = 8 [static]

Definition at line 25 of file PastryMessage_m.h.

const int PASTRYTYPE_L = 8 [static]

Definition at line 24 of file PastryMessage_m.h.

const int SIZEOF_INT = 32 [static]

Definition at line 27 of file PastryMessage_m.h.


Generated on Tue Sep 8 17:26:55 2009 for OverSim by  doxygen 1.5.8