DHTMessage_m.h File Reference

#include <omnetpp.h>
#include <OverlayKey.h>
#include <IPvXAddress.h>
#include <BinaryValue.h>
#include <NodeHandle.h>
#include <CommonMessages_m.h>

Go to the source code of this file.

Classes

class  DHTMessageCall
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTPutCall
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTGetCall
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTMessageResponse
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTPutResponse
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTGetResponse
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...
class  DHTTtlTimer
 Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...

Defines

#define MSGC_VERSION   0x0400
#define DHTCALL_L(msg)   (BASECALL_L(msg) + KEY_L)
#define PUTCALL_L(msg)   (DHTCALL_L(msg) + msg->getValue().size() * sizeof(char) + sizeof(int) + sizeof(bool) * 2 + NODEHANDLE_L)
#define GETCALL_L(msg)   (DHTCALL_L(msg) + sizeof(bool))
#define DHTRESPONSE_L(msg)   (BASERESPONSE_L(msg) + KEY_L + msg->getValue().size() * sizeof(char))
#define PUTRESPONSE_L(msg)   (DHTRESPONSE_L(msg))
#define GETRESPONSE_L(msg)   (DHTRESPONSE_L(msg) + sizeof(bool))

Functions

void doPacking (cCommBuffer *b, DHTMessageCall &obj)
void doUnpacking (cCommBuffer *b, DHTMessageCall &obj)
void doPacking (cCommBuffer *b, DHTPutCall &obj)
void doUnpacking (cCommBuffer *b, DHTPutCall &obj)
void doPacking (cCommBuffer *b, DHTGetCall &obj)
void doUnpacking (cCommBuffer *b, DHTGetCall &obj)
void doPacking (cCommBuffer *b, DHTMessageResponse &obj)
void doUnpacking (cCommBuffer *b, DHTMessageResponse &obj)
void doPacking (cCommBuffer *b, DHTPutResponse &obj)
void doUnpacking (cCommBuffer *b, DHTPutResponse &obj)
void doPacking (cCommBuffer *b, DHTGetResponse &obj)
void doUnpacking (cCommBuffer *b, DHTGetResponse &obj)
void doPacking (cCommBuffer *b, DHTTtlTimer &obj)
void doUnpacking (cCommBuffer *b, DHTTtlTimer &obj)


Define Documentation

#define DHTCALL_L ( msg   )     (BASECALL_L(msg) + KEY_L)

Definition at line 24 of file DHTMessage_m.h.

#define DHTRESPONSE_L ( msg   )     (BASERESPONSE_L(msg) + KEY_L + msg->getValue().size() * sizeof(char))

Definition at line 27 of file DHTMessage_m.h.

#define GETCALL_L ( msg   )     (DHTCALL_L(msg) + sizeof(bool))

#define GETRESPONSE_L ( msg   )     (DHTRESPONSE_L(msg) + sizeof(bool))

Definition at line 29 of file DHTMessage_m.h.

Referenced by DHT::handleGetRequest().

#define MSGC_VERSION   0x0400

Definition at line 11 of file DHTMessage_m.h.

#define PUTCALL_L ( msg   )     (DHTCALL_L(msg) + msg->getValue().size() * sizeof(char) + sizeof(int) + sizeof(bool) * 2 + NODEHANDLE_L)

Definition at line 25 of file DHTMessage_m.h.

Referenced by DHT::handleLookupResponse(), and DHT::update().

#define PUTRESPONSE_L ( msg   )     (DHTRESPONSE_L(msg))

Definition at line 28 of file DHTMessage_m.h.

Referenced by DHT::handlePutRequest().


Function Documentation

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

Definition at line 292 of file DHTMessage_m.h.

00292 {obj.parsimPack(b);}

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

Definition at line 257 of file DHTMessage_m.h.

00257 {obj.parsimPack(b);}

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

Definition at line 223 of file DHTMessage_m.h.

00223 {obj.parsimPack(b);}

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

Definition at line 193 of file DHTMessage_m.h.

00193 {obj.parsimPack(b);}

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

Definition at line 153 of file DHTMessage_m.h.

00153 {obj.parsimPack(b);}

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

Definition at line 119 of file DHTMessage_m.h.

00119 {obj.parsimPack(b);}

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

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

Definition at line 293 of file DHTMessage_m.h.

00293 {obj.parsimUnpack(b);}

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

Definition at line 258 of file DHTMessage_m.h.

00258 {obj.parsimUnpack(b);}

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

Definition at line 224 of file DHTMessage_m.h.

00224 {obj.parsimUnpack(b);}

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

Definition at line 194 of file DHTMessage_m.h.

00194 {obj.parsimUnpack(b);}

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

Definition at line 154 of file DHTMessage_m.h.

00154 {obj.parsimUnpack(b);}

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

Definition at line 120 of file DHTMessage_m.h.

00120 {obj.parsimUnpack(b);}

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


Generated on Fri Mar 20 18:40:27 2009 for OverSim by  doxygen 1.5.5