OverSim
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...

Macros

#define MSGC_VERSION   0x0402
#define SUCCESS_L   8
#define KIND_L   32
#define ID_L   32
#define SEQNO_L   32
#define TTL_L   32
#define RESULT_L(msg)   (resultValuesBitLength(msg) + msg->getResultArraySize() * (KEY_L + KIND_L + ID_L + SEQNO_L + TTL_L + KEY_L + PUBKEY_L))
#define PUTCALL_L(msg)   (BASECALL_L(msg) + AUTHBLOCK_L + msg->getValue().size() * sizeof(char) + (KEY_L + KIND_L + ID_L + SEQNO_L + TTL_L + KEY_L + PUBKEY_L))
#define GETCALL_L(msg)   (BASECALL_L(msg) + KEY_L + KIND_L + ID_L + sizeof(bool))
#define PUTRESPONSE_L(msg)   (BASERESPONSE_L(msg) + SUCCESS_L)
#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)

Macro Definition Documentation

#define GETRESPONSE_L (   msg)
Value:
(BASERESPONSE_L(msg) + KEY_L + msg->getHashValue().size() * sizeof(char) \
+ RESULT_L(msg))

Definition at line 33 of file DHTMessage_m.h.

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

#define ID_L   32

Definition at line 25 of file DHTMessage_m.h.

#define KIND_L   32

Definition at line 24 of file DHTMessage_m.h.

#define MSGC_VERSION   0x0402

Definition at line 11 of file DHTMessage_m.h.

#define PUTCALL_L (   msg)    (BASECALL_L(msg) + AUTHBLOCK_L + msg->getValue().size() * sizeof(char) + (KEY_L + KIND_L + ID_L + SEQNO_L + TTL_L + KEY_L + PUBKEY_L))
#define PUTRESPONSE_L (   msg)    (BASERESPONSE_L(msg) + SUCCESS_L)

Definition at line 32 of file DHTMessage_m.h.

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

#define RESULT_L (   msg)    (resultValuesBitLength(msg) + msg->getResultArraySize() * (KEY_L + KIND_L + ID_L + SEQNO_L + TTL_L + KEY_L + PUBKEY_L))

Definition at line 29 of file DHTMessage_m.h.

#define SEQNO_L   32

Definition at line 26 of file DHTMessage_m.h.

#define SUCCESS_L   8

Definition at line 23 of file DHTMessage_m.h.

#define TTL_L   32

Definition at line 27 of file DHTMessage_m.h.

Function Documentation

void doPacking ( cCommBuffer *  b,
DHTPutCall obj 
)
inline

Definition at line 105 of file DHTMessage_m.h.

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

Definition at line 156 of file DHTMessage_m.h.

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

Definition at line 194 of file DHTMessage_m.h.

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

Definition at line 250 of file DHTMessage_m.h.

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

Definition at line 297 of file DHTMessage_m.h.

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

Definition at line 106 of file DHTMessage_m.h.

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

Definition at line 157 of file DHTMessage_m.h.

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

Definition at line 195 of file DHTMessage_m.h.

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

Definition at line 251 of file DHTMessage_m.h.

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

Definition at line 298 of file DHTMessage_m.h.

{obj.parsimUnpack(b);}