#include <omnetpp.h>#include <CommonMessages_m.h>#include <NodeHandle.h>Go to the source code of this file.
Classes | |
| class | NiceMessage |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| class | NiceMemberMessage |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| class | NiceClusterMerge |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| class | NiceHeartbeat |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| class | NiceLeaderHeartbeat |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| class | CbrAppMessage |
Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
Defines | |
| #define | MSGC_VERSION 0x0400 |
| #define | TRANSPORTADDRESS_L (IPADDR_L + UDPPORT_L) |
| #define | NICEMESSAGE_L(msg) (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + LAYER_L) |
| #define | NICEMEMBERMESSAGE_L(msg) (NICEMESSAGE_L(msg) + (msg->getMembersArraySize() * TRANSPORTADDRESS_L)) |
| #define | NICECLUSTERMERGE_L(msg) (NICEMEMBERMESSAGE_L(msg) + TRANSPORTADDRESS_L) |
| #define | NICEHEARTBEAT_L(msg) (NICEMEMBERMESSAGE_L(msg) + (msg->getDistancesArraySize() * SIMTIME_L) + INT_L + INT_L + SIMTIME_L + INT_L) |
| #define | NICELEADERHEARTBEAT_L(msg) (NICEHEARTBEAT_L(msg) + TRANSPORTADDRESS_L + (msg->getSupercluster_membersArraySize() * TRANSPORTADDRESS_L) + INT_L) |
| #define | CBRAPPMSG_L(msg) (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + TRANSPORTADDRESS_L + DOUBLE_L + INT_L + INT_L + SHORT_L) |
Enumerations | |
| enum | NICECommand { NICE_QUERY = 0, NICE_QUERY_RESPONSE = 1, NICE_JOIN_CLUSTER = 2, NICE_HEARTBEAT = 3, NICE_LEADERHEARTBEAT = 4, NICE_LEADERTRANSFER = 5, NICE_JOINEVAL = 6, NICE_JOINEVAL_RESPONSE = 7, NICE_REMOVE = 8, NICE_PING_PROBE = 9, NICE_PING_PROBE_RESPONSE = 10, NICE_CLUSTER_MERGE_REQUEST = 11, NICE_PEER_TEMPORARY = 12, NICE_PEER_TEMPORARY_RELEASE = 13, NICE_POLL_RP = 14, NICE_POLL_RP_RESPONSE = 15, NICE_FORCE_MERGE = 16 } |
Enum generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
| enum | CbrAppCommand { CBR_DATA = 0 } |
Enum generated from overlay/nice/NiceMessage.msg by opp_msgc. More... | |
Functions | |
| void | doPacking (cCommBuffer *b, NiceMessage &obj) |
| void | doUnpacking (cCommBuffer *b, NiceMessage &obj) |
| void | doPacking (cCommBuffer *b, NiceMemberMessage &obj) |
| void | doUnpacking (cCommBuffer *b, NiceMemberMessage &obj) |
| void | doPacking (cCommBuffer *b, NiceClusterMerge &obj) |
| void | doUnpacking (cCommBuffer *b, NiceClusterMerge &obj) |
| void | doPacking (cCommBuffer *b, NiceHeartbeat &obj) |
| void | doUnpacking (cCommBuffer *b, NiceHeartbeat &obj) |
| void | doPacking (cCommBuffer *b, NiceLeaderHeartbeat &obj) |
| void | doUnpacking (cCommBuffer *b, NiceLeaderHeartbeat &obj) |
| void | doPacking (cCommBuffer *b, CbrAppMessage &obj) |
| void | doUnpacking (cCommBuffer *b, CbrAppMessage &obj) |
Variables | |
| static const int | NICECOMMAND_L = 8 |
| static const int | LAYER_L = 16 |
| static const int | INT_L = 32 |
| static const int | SIMTIME_L = 32 |
| static const int | BOOL_L = 8 |
| static const int | DOUBLE_L = 64 |
| static const int | SHORT_L = 16 |
| #define CBRAPPMSG_L | ( | msg | ) | (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + TRANSPORTADDRESS_L + DOUBLE_L + INT_L + INT_L + SHORT_L) |
| #define MSGC_VERSION 0x0400 |
Definition at line 11 of file NiceMessage_m.h.
| #define NICECLUSTERMERGE_L | ( | msg | ) | (NICEMEMBERMESSAGE_L(msg) + TRANSPORTADDRESS_L) |
| #define NICEHEARTBEAT_L | ( | msg | ) | (NICEMEMBERMESSAGE_L(msg) + (msg->getDistancesArraySize() * SIMTIME_L) + INT_L + INT_L + SIMTIME_L + INT_L) |
Definition at line 35 of file NiceMessage_m.h.
Referenced by oversim::Nice::sendHeartbeats(), and oversim::Nice::sendHeartbeatTo().
| #define NICELEADERHEARTBEAT_L | ( | msg | ) | (NICEHEARTBEAT_L(msg) + TRANSPORTADDRESS_L + (msg->getSupercluster_membersArraySize() * TRANSPORTADDRESS_L) + INT_L) |
Definition at line 36 of file NiceMessage_m.h.
Referenced by oversim::Nice::LeaderTransfer(), oversim::Nice::sendHeartbeats(), and oversim::Nice::sendHeartbeatTo().
| #define NICEMEMBERMESSAGE_L | ( | msg | ) | (NICEMESSAGE_L(msg) + (msg->getMembersArraySize() * TRANSPORTADDRESS_L)) |
| #define NICEMESSAGE_L | ( | msg | ) | (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + LAYER_L) |
Definition at line 32 of file NiceMessage_m.h.
Referenced by oversim::Nice::BasicJoinLayer(), oversim::Nice::handleHeartbeat(), oversim::Nice::handleQueryResponse(), oversim::Nice::handleUDPMessage(), oversim::Nice::JoinCluster(), oversim::Nice::pollRP(), oversim::Nice::Query(), oversim::Nice::Remove(), and oversim::Nice::sendHeartbeats().
Definition at line 22 of file NiceMessage_m.h.
| enum CbrAppCommand |
Enum generated from overlay/nice/NiceMessage.msg by opp_msgc.
enum CbrAppCommand
{
CBR_DATA = 0;
}
Definition at line 97 of file NiceMessage_m.h.
00097 { 00098 CBR_DATA = 0 00099 };
| enum NICECommand |
Enum generated from overlay/nice/NiceMessage.msg by opp_msgc.
enum NICECommand
{
NICE_QUERY = 0;
NICE_QUERY_RESPONSE = 1;
NICE_JOIN_CLUSTER = 2;
NICE_HEARTBEAT = 3;
NICE_LEADERHEARTBEAT = 4;
NICE_LEADERTRANSFER = 5;
NICE_JOINEVAL = 6;
NICE_JOINEVAL_RESPONSE = 7;
NICE_REMOVE = 8;
NICE_PING_PROBE = 9;
NICE_PING_PROBE_RESPONSE = 10;
NICE_CLUSTER_MERGE_REQUEST = 11;
NICE_PEER_TEMPORARY = 12;
NICE_PEER_TEMPORARY_RELEASE = 13;
NICE_POLL_RP = 14;
NICE_POLL_RP_RESPONSE = 15;
NICE_FORCE_MERGE = 16;
}
Definition at line 68 of file NiceMessage_m.h.
00068 { 00069 NICE_QUERY = 0, 00070 NICE_QUERY_RESPONSE = 1, 00071 NICE_JOIN_CLUSTER = 2, 00072 NICE_HEARTBEAT = 3, 00073 NICE_LEADERHEARTBEAT = 4, 00074 NICE_LEADERTRANSFER = 5, 00075 NICE_JOINEVAL = 6, 00076 NICE_JOINEVAL_RESPONSE = 7, 00077 NICE_REMOVE = 8, 00078 NICE_PING_PROBE = 9, 00079 NICE_PING_PROBE_RESPONSE = 10, 00080 NICE_CLUSTER_MERGE_REQUEST = 11, 00081 NICE_PEER_TEMPORARY = 12, 00082 NICE_PEER_TEMPORARY_RELEASE = 13, 00083 NICE_POLL_RP = 14, 00084 NICE_POLL_RP_RESPONSE = 15, 00085 NICE_FORCE_MERGE = 16 00086 };
| void doPacking | ( | cCommBuffer * | b, | |
| CbrAppMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| NiceLeaderHeartbeat & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| NiceHeartbeat & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| NiceClusterMerge & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| NiceMemberMessage & | obj | |||
| ) | [inline] |
| void doPacking | ( | cCommBuffer * | b, | |
| NiceMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| CbrAppMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| NiceLeaderHeartbeat & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| NiceHeartbeat & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| NiceClusterMerge & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| NiceMemberMessage & | obj | |||
| ) | [inline] |
| void doUnpacking | ( | cCommBuffer * | b, | |
| NiceMessage & | obj | |||
| ) | [inline] |
const int BOOL_L = 8 [static] |
Definition at line 28 of file NiceMessage_m.h.
const int DOUBLE_L = 64 [static] |
Definition at line 29 of file NiceMessage_m.h.
const int INT_L = 32 [static] |
Definition at line 26 of file NiceMessage_m.h.
const int LAYER_L = 16 [static] |
Definition at line 25 of file NiceMessage_m.h.
const int NICECOMMAND_L = 8 [static] |
Definition at line 24 of file NiceMessage_m.h.
const int SHORT_L = 16 [static] |
Definition at line 30 of file NiceMessage_m.h.
const int SIMTIME_L = 32 [static] |
Definition at line 27 of file NiceMessage_m.h.
1.5.8