OverSim
KademliaMessage_m.h File Reference
#include <omnetpp.h>
#include <KademliaNodeHandle.h>
#include <OverlayKey.h>
#include <CommonMessages_m.h>

Go to the source code of this file.

Classes

class  KademliaRoutingInfoMessage
 Class generated from overlay/kademlia/KademliaMessage.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define MARKEDNODEHANDLE_L   (NODEHANDLE_L + ALIVEFLAG_L)
#define KADEMLIAROUTINGINFO_L(msg)

Functions

void doPacking (cCommBuffer *b, KademliaRoutingInfoMessage &obj)
void doUnpacking (cCommBuffer *b, KademliaRoutingInfoMessage &obj)

Variables

static const int ALIVEFLAG_L = 8

Macro Definition Documentation

#define KADEMLIAROUTINGINFO_L (   msg)
Value:
KEY_L + \
msg->getNextHopsArraySize() * \
MARKEDNODEHANDLE_L)

Definition at line 24 of file KademliaMessage_m.h.

Referenced by Kademlia::recursiveRoutingHook().

#define MARKEDNODEHANDLE_L   (NODEHANDLE_L + ALIVEFLAG_L)

Definition at line 22 of file KademliaMessage_m.h.

#define MSGC_VERSION   0x0402

Definition at line 11 of file KademliaMessage_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
KademliaRoutingInfoMessage obj 
)
inline

Definition at line 81 of file KademliaMessage_m.h.

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

Definition at line 82 of file KademliaMessage_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int ALIVEFLAG_L = 8
static

Definition at line 21 of file KademliaMessage_m.h.