#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 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) |
| #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) |
| #define PASTRYREQ_L | ( | msg | ) | (PASTRY_L(msg) + TRANSPORTADDRESS_L + PASTRYREQUESTTYPE_L) |
| #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) |
Definition at line 45 of file PastryMessage_m.h.
Referenced by BasePastry::doRoutingTableMaintenance(), and Pastry::handleTimerEvent().
| #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().
Definition at line 29 of file PastryMessage_m.h.
| enum PastryMsgType |
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;
}
| 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 PastryStateMsgType |
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;
}
| 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 };
| void doPacking | ( | cCommBuffer * | b, | |
| PastryRequestMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryRoutingRowMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryRoutingRowRequestMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryLeafsetMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastrySendState & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryNewLeafsMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryFindNodeExtData & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryStateMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryJoinMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| PastryMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryRequestMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryRoutingRowMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryRoutingRowRequestMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryLeafsetMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastrySendState & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryNewLeafsMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryFindNodeExtData & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryStateMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryJoinMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| PastryMessage & | obj | |||
| ) | [inline] |
const int PASTRYFINDNODEEXTDATA_L = NODEHANDLE_L + 8 * SIZEOF_INT [static] |
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.
1.5.8