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  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 Documentation

#define CBRAPPMSG_L ( msg   )     (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + TRANSPORTADDRESS_L + DOUBLE_L + INT_L + INT_L + SHORT_L)

Definition at line 37 of file NiceMessage_m.h.

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

#define MSGC_VERSION   0x0400

Definition at line 11 of file NiceMessage_m.h.

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

Definition at line 34 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 33 of file NiceMessage_m.h.

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

#define NICEMESSAGE_L ( msg   )     (BASEOVERLAY_L(msg) + NICECOMMAND_L + TRANSPORTADDRESS_L + LAYER_L)

#define TRANSPORTADDRESS_L   (IPADDR_L + UDPPORT_L)

Definition at line 22 of file NiceMessage_m.h.


Enumeration Type Documentation

Enum generated from overlay/nice/NiceMessage.msg by opp_msgc.

 enum CbrAppCommand
 {
     CBR_DATA = 0; 
 }
 
Enumerator:
CBR_DATA 

Definition at line 97 of file NiceMessage_m.h.

00097                    {
00098     CBR_DATA = 0
00099 };

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; 
 }
 
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 

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 };


Function Documentation

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

Definition at line 382 of file NiceMessage_m.h.

00382 {obj.parsimPack(b);}

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

Definition at line 322 of file NiceMessage_m.h.

00322 {obj.parsimPack(b);}

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

Definition at line 271 of file NiceMessage_m.h.

00271 {obj.parsimPack(b);}

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

Definition at line 214 of file NiceMessage_m.h.

00214 {obj.parsimPack(b);}

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

Definition at line 179 of file NiceMessage_m.h.

00179 {obj.parsimPack(b);}

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

Definition at line 141 of file NiceMessage_m.h.

00141 {obj.parsimPack(b);}

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

Definition at line 383 of file NiceMessage_m.h.

00383 {obj.parsimUnpack(b);}

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

Definition at line 323 of file NiceMessage_m.h.

00323 {obj.parsimUnpack(b);}

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

Definition at line 272 of file NiceMessage_m.h.

00272 {obj.parsimUnpack(b);}

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

Definition at line 215 of file NiceMessage_m.h.

00215 {obj.parsimUnpack(b);}

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

Definition at line 180 of file NiceMessage_m.h.

00180 {obj.parsimUnpack(b);}

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

Definition at line 142 of file NiceMessage_m.h.

00142 {obj.parsimUnpack(b);}


Variable Documentation

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.


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