OverSim
NiceMessage_m.h File Reference
#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  NiceMulticastMessage
 Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#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 NICEMULTICAST_L(msg)   (NICEMESSAGE_L(msg) + TRANSPORTADDRESS_L + DOUBLE_L + INT_L + INT_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, NICE_MULTICAST = 17
}
 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, NiceMulticastMessage &obj)
void doUnpacking (cCommBuffer *b, NiceMulticastMessage &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

Macro Definition Documentation

#define MSGC_VERSION   0x0402

Definition at line 11 of file NiceMessage_m.h.

#define NICECLUSTERMERGE_L (   msg)    (NICEMEMBERMESSAGE_L(msg) + TRANSPORTADDRESS_L)

Definition at line 32 of file NiceMessage_m.h.

Referenced by oversim::Nice::ClusterMergeRequest().

#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 NICEMEMBERMESSAGE_L (   msg)    (NICEMESSAGE_L(msg) + (msg->getMembersArraySize() * TRANSPORTADDRESS_L))

Definition at line 31 of file NiceMessage_m.h.

Referenced by oversim::Nice::handleNiceQuery().

#define NICEMULTICAST_L (   msg)    (NICEMESSAGE_L(msg) + TRANSPORTADDRESS_L + DOUBLE_L + INT_L + INT_L)

Definition at line 35 of file NiceMessage_m.h.

Referenced by oversim::Nice::handleAppMessage().

#define TRANSPORTADDRESS_L   (IPADDR_L + UDPPORT_L)

Definition at line 20 of file NiceMessage_m.h.

Enumeration Type Documentation

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; 
    NICE_MULTICAST = 17; 
}
Enumerator:
NICE_QUERY 
NICE_QUERY_RESPONSE 
NICE_JOIN_CLUSTER 
NICE_HEARTBEAT 
NICE_LEADERHEARTBEAT 
NICE_LEADERTRANSFER 
NICE_JOINEVAL 
NICE_JOINEVAL_RESPONSE 
NICE_REMOVE 
NICE_PING_PROBE 
NICE_PING_PROBE_RESPONSE 
NICE_CLUSTER_MERGE_REQUEST 
NICE_PEER_TEMPORARY 
NICE_PEER_TEMPORARY_RELEASE 
NICE_POLL_RP 
NICE_POLL_RP_RESPONSE 
NICE_FORCE_MERGE 
NICE_MULTICAST 

Definition at line 66 of file NiceMessage_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
NiceMessage obj 
)
inline

Definition at line 131 of file NiceMessage_m.h.

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

Definition at line 173 of file NiceMessage_m.h.

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

Definition at line 212 of file NiceMessage_m.h.

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

Definition at line 273 of file NiceMessage_m.h.

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

Definition at line 328 of file NiceMessage_m.h.

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

Definition at line 379 of file NiceMessage_m.h.

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

Definition at line 132 of file NiceMessage_m.h.

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

Definition at line 174 of file NiceMessage_m.h.

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

Definition at line 213 of file NiceMessage_m.h.

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

Definition at line 274 of file NiceMessage_m.h.

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

Definition at line 329 of file NiceMessage_m.h.

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

Definition at line 380 of file NiceMessage_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int BOOL_L = 8
static

Definition at line 26 of file NiceMessage_m.h.

const int DOUBLE_L = 64
static

Definition at line 27 of file NiceMessage_m.h.

const int INT_L = 32
static

Definition at line 24 of file NiceMessage_m.h.

const int LAYER_L = 16
static

Definition at line 23 of file NiceMessage_m.h.

const int NICECOMMAND_L = 8
static

Definition at line 22 of file NiceMessage_m.h.

const int SHORT_L = 16
static

Definition at line 28 of file NiceMessage_m.h.

const int SIMTIME_L = 32
static

Definition at line 25 of file NiceMessage_m.h.