#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 0x0401 |
#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) |
#define GETCALL_L | ( | msg | ) | (BASECALL_L(msg) + KEY_L + KIND_L + ID_L + sizeof(bool)) |
Definition at line 31 of file DHTMessage_m.h.
Referenced by CBRDHT::handleGetCAPIRequest(), DHT::handleGetResponse(), CBRDHT::handleGetResponse(), DHT::handleLookupResponse(), CBRDHT::handleLookupResponse(), DHT::handleRpcTimeout(), and CBRDHT::handleRpcTimeout().
#define GETRESPONSE_L | ( | msg | ) |
(BASERESPONSE_L(msg) + KEY_L + msg->getHashValue().size() * sizeof(char) \ + RESULT_L(msg))
Definition at line 33 of file DHTMessage_m.h.
Referenced by DHT::handleGetRequest(), and CBRDHT::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 0x0401 |
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)) |
Definition at line 30 of file DHTMessage_m.h.
Referenced by DHT::handleLookupResponse(), CBRDHT::handleLookupResponse(), DHT::sendMaintenancePutCall(), and CBRDHT::update().
#define PUTRESPONSE_L | ( | msg | ) | (BASERESPONSE_L(msg) + SUCCESS_L) |
Definition at line 32 of file DHTMessage_m.h.
Referenced by DHT::handlePutRequest(), and CBRDHT::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.
void doPacking | ( | cCommBuffer * | b, | |
DHTPutCall & | obj | |||
) | [inline] |
Definition at line 101 of file DHTMessage_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
DHTPutResponse & | obj | |||
) | [inline] |
Definition at line 182 of file DHTMessage_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
DHTTtlTimer & | obj | |||
) | [inline] |
Definition at line 277 of file DHTMessage_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
DHTGetCall & | obj | |||
) | [inline] |
Definition at line 148 of file DHTMessage_m.h.
{obj.parsimPack(b);}
void doPacking | ( | cCommBuffer * | b, | |
DHTGetResponse & | obj | |||
) | [inline] |
Definition at line 234 of file DHTMessage_m.h.
{obj.parsimPack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
DHTPutResponse & | obj | |||
) | [inline] |
Definition at line 183 of file DHTMessage_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
DHTPutCall & | obj | |||
) | [inline] |
Definition at line 102 of file DHTMessage_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
DHTTtlTimer & | obj | |||
) | [inline] |
Definition at line 278 of file DHTMessage_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
DHTGetResponse & | obj | |||
) | [inline] |
Definition at line 235 of file DHTMessage_m.h.
{obj.parsimUnpack(b);}
void doUnpacking | ( | cCommBuffer * | b, | |
DHTGetCall & | obj | |||
) | [inline] |
Definition at line 149 of file DHTMessage_m.h.
{obj.parsimUnpack(b);}