header.hh File Reference

#include "nr/nr.hh"

Include dependency graph for header.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hdr_diff

Defines

#define BROADCAST_ADDR   -1
#define DATA_LEN(x)   (x)->data_len
#define DEFAULT_DIFFUSION_PORT   2000
#define DIFF_VER(x)   (x)->version
#define DIFFUSION_PORT   DEFAULT_DIFFUSION_PORT
#define DIFFUSION_VERSION   3
#define HDR_DIFF(x)   (struct hdr_diff *)(x)
#define LAST_HOP(x)   (x)->last_hop
#define LOCALHOST_ADDR   -2
#define MAX_PKT_SIZE   8192
#define MSG_TYPE(x)   (x)->msg_type
#define NEXT_HOP(x)   (x)->next_hop
#define NUM_ATTR(x)   (x)->num_attr
#define PKT_NUM(x)   (x)->pkt_num
#define RDM_ID(x)   (x)->rdm_id
#define SRC_PORT(x)   (x)->src_port

Typedefs

typedef enum msg_t_ diff_msg_t
typedef int * DiffPacket

Enumerations

enum  msg_t_ {
  INTEREST, POSITIVE_REINFORCEMENT, NEGATIVE_REINFORCEMENT, DATA,
  EXPLORATORY_DATA, PUSH_EXPLORATORY_DATA, CONTROL, REDIRECT
}


Define Documentation

#define BROADCAST_ADDR   -1
 

Definition at line 55 of file header.hh.

Referenced by GeoRoutingFilter::beaconTimeout(), GeoRoutingFilter::broadcastHeuristicValue(), DiffusionCoreAgent::DiffusionCoreAgent(), GradientFilter::interestTimeout(), OnePhasePullFilter::interestTimeout(), DiffusionStats::logIncomingMessage(), DiffusionStats::logOutgoingMessage(), GeoRoutingFilter::postProcessFilter(), GeoRoutingFilter::preProcessFilter(), DiffusionCoreAgent::recvMessage(), IOLog::recvPacket(), GeoRoutingFilter::sendNeighborRequest(), and IOLog::sendPacket().

#define DATA_LEN  )     (x)->data_len
 

Definition at line 72 of file header.hh.

Referenced by IOLog::recvPacket(), DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define DEFAULT_DIFFUSION_PORT   2000
 

Definition at line 62 of file header.hh.

Referenced by DiffusionCoreAgent::DiffusionCoreAgent(), DiffusionRouting::DiffusionRouting(), GearSenderApp::parseCommandLine(), GearReceiverApp::parseCommandLine(), and DiffApp::parseCommandLine().

#define DIFF_VER  )     (x)->version
 

Definition at line 70 of file header.hh.

Referenced by DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define DIFFUSION_PORT   DEFAULT_DIFFUSION_PORT
 

Definition at line 65 of file header.hh.

#define DIFFUSION_VERSION   3
 

Definition at line 57 of file header.hh.

Referenced by DiffusionRouting::addFilter(), DiffusionRouting::addToBlacklist(), GeoRoutingFilter::beaconTimeout(), GeoRoutingFilter::broadcastHeuristicValue(), DiffusionRouting::clearBlacklist(), DiffusionRouting::filterKeepaliveTimeout(), DiffusionCoreAgent::forwardMessage(), DiffusionRouting::interestTimeout(), GeoRoutingFilter::preProcessFilter(), RmstFilter::processTimer(), DiffusionCoreAgent::recvMessage(), DiffusionRouting::recvMessage(), GradientFilter::reinforcementTimeout(), OnePhasePullFilter::reinforcementTimeout(), DiffusionRouting::removeFilter(), RmstFilter::sendAckToSource(), RmstFilter::sendContToSource(), RmstFilter::sendExpReqUpstream(), GradientFilter::sendInterest(), OnePhasePullFilter::sendInterest(), DiffusionCoreAgent::sendMessage(), DiffusionRouting::sendMessage(), GeoRoutingFilter::sendNeighborRequest(), GradientFilter::sendPositiveReinforcement(), and RmstFilter::sendRmstToSink().

#define HDR_DIFF  )     (struct hdr_diff *)(x)
 

Definition at line 103 of file header.hh.

Referenced by IOLog::recvPacket(), DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), DiffusionCoreAgent::sendMessageToNetwork(), and IOLog::sendPacket().

#define LAST_HOP  )     (x)->last_hop
 

Definition at line 68 of file header.hh.

Referenced by IOLog::recvPacket(), DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define LOCALHOST_ADDR   -2
 

Definition at line 56 of file header.hh.

Referenced by DiffusionRouting::addFilter(), DiffusionRouting::addToBlacklist(), GeoRoutingFilter::beaconTimeout(), GeoRoutingFilter::broadcastHeuristicValue(), DiffusionRouting::clearBlacklist(), DiffusionCoreAgent::DiffusionCoreAgent(), DiffusionRouting::filterKeepaliveTimeout(), GradientFilter::forwardData(), OnePhasePullFilter::forwardData(), GradientFilter::forwardExploratoryData(), DiffusionCoreAgent::forwardMessage(), GradientFilter::forwardPushExploratoryData(), GradientFilter::interestTimeout(), OnePhasePullFilter::interestTimeout(), DiffusionRouting::interestTimeout(), DiffusionStats::logIncomingMessage(), GeoRoutingFilter::postProcessFilter(), GeoRoutingFilter::preProcessFilter(), DiffusionCoreAgent::processControlMessage(), RmstFilter::processMessage(), LogFilter::ProcessMessage(), GradientFilter::processNewMessage(), OnePhasePullFilter::processNewMessage(), GradientFilter::processOldMessage(), OnePhasePullFilter::processOldMessage(), RmstFilter::processTimer(), DiffusionCoreAgent::recvMessage(), DiffusionRouting::recvMessage(), IOLog::recvPacket(), GradientFilter::reinforcementTimeout(), OnePhasePullFilter::reinforcementTimeout(), DiffusionRouting::removeFilter(), GradientFilter::sendInterest(), OnePhasePullFilter::sendInterest(), DiffusionCoreAgent::sendMessage(), DiffusionRouting::sendMessage(), GeoRoutingFilter::sendNeighborRequest(), GradientFilter::sendPositiveReinforcement(), RmstFilter::syncLocalCache(), and DiffusionCoreAgent::updateNeighbors().

#define MAX_PKT_SIZE   8192
 

Definition at line 54 of file header.hh.

#define MSG_TYPE  )     (x)->msg_type
 

Definition at line 71 of file header.hh.

Referenced by IOLog::recvPacket(), DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), DiffusionCoreAgent::sendMessageToNetwork(), and IOLog::sendPacket().

#define NEXT_HOP  )     (x)->next_hop
 

Definition at line 69 of file header.hh.

Referenced by God::ComputeNextHop(), God::NextHop(), IOLog::recvPacket(), DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define NUM_ATTR  )     (x)->num_attr
 

Definition at line 75 of file header.hh.

Referenced by DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define PKT_NUM  )     (x)->pkt_num
 

Definition at line 73 of file header.hh.

Referenced by DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define RDM_ID  )     (x)->rdm_id
 

Definition at line 74 of file header.hh.

Referenced by DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().

#define SRC_PORT  )     (x)->src_port
 

Definition at line 76 of file header.hh.

Referenced by DiffusionCoreAgent::recvPacket(), DiffusionRouting::recvPacket(), DiffusionRouting::sendMessageToDiffusion(), DiffusionCoreAgent::sendMessageToLibrary(), and DiffusionCoreAgent::sendMessageToNetwork().


Typedef Documentation

typedef enum msg_t_ diff_msg_t
 

typedef int* DiffPacket
 

Definition at line 52 of file header.hh.


Enumeration Type Documentation

enum msg_t_
 

Enumerator:
INTEREST 
POSITIVE_REINFORCEMENT 
NEGATIVE_REINFORCEMENT 
DATA 
EXPLORATORY_DATA 
PUSH_EXPLORATORY_DATA 
CONTROL 
REDIRECT 

Definition at line 79 of file header.hh.

00079                     {
00080   INTEREST,
00081   POSITIVE_REINFORCEMENT,
00082   NEGATIVE_REINFORCEMENT,
00083   DATA,
00084   EXPLORATORY_DATA,
00085   PUSH_EXPLORATORY_DATA,
00086   CONTROL,
00087   REDIRECT,
00088 } diff_msg_t;


Generated on Tue Mar 6 16:53:11 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6