GiaMessage_m.h File Reference

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

Go to the source code of this file.

Classes

class  GiaMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  GiaNeighborMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  TokenMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  GiaIDMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  GiaRouteMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  KeyListMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  SearchMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...
class  SearchResponseMessage
 Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...

Defines

#define MSGC_VERSION   0x0400
#define GIANODE_L   (CAPACITY_L + DEGREE_L + NODEHANDLE_L + 2 * TOKENNR_L)
#define GIA_L(msg)
#define GIANEIGHBOR_L(msg)   (GIA_L(msg) + msg->getNeighborsArraySize() * GIANODE_L)
#define TOKEN_L(msg)   (GIA_L(msg) + 2 * TOKENNR_L)
#define GIAID_L(msg)   (GIA_L(msg) + KEY_L)
#define GIAROUTE_L(msg)   (GIAID_L(msg) + KEY_L + IPADDR_L + UDPPORT_L)
#define KEYLIST_L(msg)   (GIA_L(msg) + (msg->getKeysArraySize() * KEY_L))
#define SEARCH_L(msg)
#define SEARCHRESPONSE_L(msg)

Enumerations

enum  GIACommand {
  JOIN_REQUEST = 0, JOIN_RESPONSE = 1, JOIN_ACK = 2, JOIN_DENY = 3,
  DISCONNECT = 4, ROUTE = 5, SEARCH = 6, ANSWER = 7,
  UPDATE = 8, TOKEN = 9, KEYLIST = 10
}
 Enum generated from overlay/gia/GiaMessage.msg by opp_msgc. More...

Functions

void doPacking (cCommBuffer *b, GiaMessage &obj)
void doUnpacking (cCommBuffer *b, GiaMessage &obj)
void doPacking (cCommBuffer *b, GiaNeighborMessage &obj)
void doUnpacking (cCommBuffer *b, GiaNeighborMessage &obj)
void doPacking (cCommBuffer *b, TokenMessage &obj)
void doUnpacking (cCommBuffer *b, TokenMessage &obj)
void doPacking (cCommBuffer *b, GiaIDMessage &obj)
void doUnpacking (cCommBuffer *b, GiaIDMessage &obj)
void doPacking (cCommBuffer *b, GiaRouteMessage &obj)
void doUnpacking (cCommBuffer *b, GiaRouteMessage &obj)
void doPacking (cCommBuffer *b, KeyListMessage &obj)
void doUnpacking (cCommBuffer *b, KeyListMessage &obj)
void doPacking (cCommBuffer *b, SearchMessage &obj)
void doUnpacking (cCommBuffer *b, SearchMessage &obj)
void doPacking (cCommBuffer *b, SearchResponseMessage &obj)
void doUnpacking (cCommBuffer *b, SearchResponseMessage &obj)

Variables

static const int GIACOMMAND_L = 8
static const int CAPACITY_L = 32
static const int DEGREE_L = 16
static const int TOKENNR_L = 16
static const int MAXRESPONSES_L = 16


Define Documentation

#define GIA_L ( msg   ) 

#define GIAID_L ( msg   )     (GIA_L(msg) + KEY_L)

Definition at line 36 of file GiaMessage_m.h.

#define GIANEIGHBOR_L ( msg   )     (GIA_L(msg) + msg->getNeighborsArraySize() * GIANODE_L)

Definition at line 34 of file GiaMessage_m.h.

Referenced by Gia::sendMessage_JOIN_ACK(), and Gia::sendMessage_JOIN_RSP().

#define GIANODE_L   (CAPACITY_L + DEGREE_L + NODEHANDLE_L + 2 * TOKENNR_L)

Definition at line 30 of file GiaMessage_m.h.

#define GIAROUTE_L ( msg   )     (GIAID_L(msg) + KEY_L + IPADDR_L + UDPPORT_L)

Definition at line 37 of file GiaMessage_m.h.

Referenced by Gia::getRoute().

#define KEYLIST_L ( msg   )     (GIA_L(msg) + (msg->getKeysArraySize() * KEY_L))

Definition at line 38 of file GiaMessage_m.h.

Referenced by Gia::sendKeyListToNeighbor().

#define MSGC_VERSION   0x0400

Definition at line 11 of file GiaMessage_m.h.

#define SEARCH_L ( msg   ) 

Value:

(GIAID_L(msg) + KEY_L + MAXRESPONSES_L + \
                       msg->getReversePathArraySize() * KEY_L + \
                       msg->getFoundNodeArraySize() * KEY_L)

Definition at line 39 of file GiaMessage_m.h.

Referenced by Gia::handleAppMessage().

#define SEARCHRESPONSE_L ( msg   ) 

Value:

(GIAID_L(msg) + KEY_L + msg->getReversePathArraySize() * KEY_L + \
                               GIANODE_L + HOPCOUNT_L)

Definition at line 42 of file GiaMessage_m.h.

Referenced by Gia::sendSearchResponseMessage().

#define TOKEN_L ( msg   )     (GIA_L(msg) + 2 * TOKENNR_L)

Definition at line 35 of file GiaMessage_m.h.

Referenced by Gia::sendToken().


Enumeration Type Documentation

enum GIACommand

Enum generated from overlay/gia/GiaMessage.msg by opp_msgc.

 enum GIACommand
 {
     JOIN_REQUEST = 0;    
     JOIN_RESPONSE = 1;    
     JOIN_ACK = 2;    
     JOIN_DENY = 3;    
     DISCONNECT = 4;    
     ROUTE = 5;    
     SEARCH = 6;    
     ANSWER = 7;    
     UPDATE = 8;    
     TOKEN = 9;    
     KEYLIST= 10;    
 };
 
Enumerator:
JOIN_REQUEST 
JOIN_RESPONSE 
JOIN_ACK 
JOIN_DENY 
DISCONNECT 
ROUTE 
SEARCH 
ANSWER 
UPDATE 
TOKEN 
KEYLIST 

Definition at line 67 of file GiaMessage_m.h.

00067                 {
00068     JOIN_REQUEST = 0,
00069     JOIN_RESPONSE = 1,
00070     JOIN_ACK = 2,
00071     JOIN_DENY = 3,
00072     DISCONNECT = 4,
00073     ROUTE = 5,
00074     SEARCH = 6,
00075     ANSWER = 7,
00076     UPDATE = 8,
00077     TOKEN = 9,
00078     KEYLIST = 10
00079 };


Function Documentation

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

Definition at line 434 of file GiaMessage_m.h.

00434 {obj.parsimPack(b);}

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

Definition at line 382 of file GiaMessage_m.h.

00382 {obj.parsimPack(b);}

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

Definition at line 327 of file GiaMessage_m.h.

00327 {obj.parsimPack(b);}

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

Definition at line 289 of file GiaMessage_m.h.

00289 {obj.parsimPack(b);}

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

Definition at line 245 of file GiaMessage_m.h.

00245 {obj.parsimPack(b);}

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

Definition at line 205 of file GiaMessage_m.h.

00205 {obj.parsimPack(b);}

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

Definition at line 167 of file GiaMessage_m.h.

00167 {obj.parsimPack(b);}

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

Definition at line 129 of file GiaMessage_m.h.

00129 {obj.parsimPack(b);}

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

Definition at line 435 of file GiaMessage_m.h.

00435 {obj.parsimUnpack(b);}

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

Definition at line 383 of file GiaMessage_m.h.

00383 {obj.parsimUnpack(b);}

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

Definition at line 328 of file GiaMessage_m.h.

00328 {obj.parsimUnpack(b);}

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

Definition at line 290 of file GiaMessage_m.h.

00290 {obj.parsimUnpack(b);}

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

Definition at line 246 of file GiaMessage_m.h.

00246 {obj.parsimUnpack(b);}

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

Definition at line 206 of file GiaMessage_m.h.

00206 {obj.parsimUnpack(b);}

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

Definition at line 168 of file GiaMessage_m.h.

00168 {obj.parsimUnpack(b);}

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

Definition at line 130 of file GiaMessage_m.h.

00130 {obj.parsimUnpack(b);}


Variable Documentation

const int CAPACITY_L = 32 [static]

Definition at line 26 of file GiaMessage_m.h.

const int DEGREE_L = 16 [static]

Definition at line 27 of file GiaMessage_m.h.

const int GIACOMMAND_L = 8 [static]

Definition at line 25 of file GiaMessage_m.h.

const int MAXRESPONSES_L = 16 [static]

Definition at line 29 of file GiaMessage_m.h.

const int TOKENNR_L = 16 [static]

Definition at line 28 of file GiaMessage_m.h.


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