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  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  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 RESULT_L(msg)   (resultValuesBitLength(msg) + msg->getResultArraySize() * (KEY_L + 2 * sizeof(uint32_t) + sizeof(int) + 2 * sizeof(bool) + NODEHANDLE_L))
#define PUTCALL_L(msg)   (BASECALL_L(msg) + KEY_L + msg->getValue().size() * sizeof(char) + sizeof(int) + sizeof(int32_t) + sizeof(int32_t) + sizeof(bool) * 2 + NODEHANDLE_L)
#define GETCALL_L(msg)   (BASECALL_L(msg) + sizeof(bool))
#define PUTRESPONSE_L(msg)   (BASERESPONSE_L(msg) + KEY_L + msg->getValue().size() * sizeof(char))
#define GETRESPONSE_L(msg)

Functions

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, 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 GETCALL_L ( msg   )     (BASECALL_L(msg) + sizeof(bool))

#define GETRESPONSE_L ( msg   ) 

Value:

(BASERESPONSE_L(msg) + KEY_L + msg->getHashValue().size() * sizeof(char) \
                            + RESULT_L(msg) + sizeof(bool))

Definition at line 28 of file DHTMessage_m.h.

Referenced by DHT::handleGetRequest(), and CBRDHT::handleGetRequest().

#define MSGC_VERSION   0x0400

Definition at line 11 of file DHTMessage_m.h.

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

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

Definition at line 27 of file DHTMessage_m.h.

Referenced by DHT::handlePutRequest(), and CBRDHT::handlePutRequest().

#define RESULT_L ( msg   )     (resultValuesBitLength(msg) + msg->getResultArraySize() * (KEY_L + 2 * sizeof(uint32_t) + sizeof(int) + 2 * sizeof(bool) + NODEHANDLE_L))

Definition at line 24 of file DHTMessage_m.h.


Function Documentation

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

Definition at line 278 of file DHTMessage_m.h.

00278 {obj.parsimPack(b);}

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

Definition at line 235 of file DHTMessage_m.h.

00235 {obj.parsimPack(b);}

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

Definition at line 183 of file DHTMessage_m.h.

00183 {obj.parsimPack(b);}

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

Definition at line 143 of file DHTMessage_m.h.

00143 {obj.parsimPack(b);}

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

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

Definition at line 279 of file DHTMessage_m.h.

00279 {obj.parsimUnpack(b);}

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

Definition at line 236 of file DHTMessage_m.h.

00236 {obj.parsimUnpack(b);}

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

Definition at line 184 of file DHTMessage_m.h.

00184 {obj.parsimUnpack(b);}

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

Definition at line 144 of file DHTMessage_m.h.

00144 {obj.parsimUnpack(b);}

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


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