Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

header.hh File Reference

#include "nr/nr.hh"

Include dependency graph for header.hh:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Compounds

struct  hdr_diff

Defines

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

Typedefs

typedef int * DiffPacket
typedef enum msg_t_ diff_msg_t

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 35 of file header.hh.

Referenced by GeoRoutingFilter::beaconTimeout(), GeoRoutingFilter::broadcastHeuristicValue(), DiffusionCoreAgent::DiffusionCoreAgent(), GeoRoutingFilter::findNextHop(), GradientFilter::forwardExploratoryData(), GradientFilter::forwardPushExploratoryData(), GradientFilter::interestTimeout(), DiffusionStats::logIncomingMessage(), DiffusionStats::logOutgoingMessage(), GeoRoutingFilter::postProcessFilter(), GeoRoutingFilter::preProcessFilter(), GradientFilter::processNewMessage(), DiffusionCoreAgent::recvMessage(), and GeoRoutingFilter::sendNeighborRequest().

#define DATA_LEN  )     (x)->data_len
 

Definition at line 52 of file header.hh.

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

#define DEFAULT_DIFFUSION_PORT   2000
 

Definition at line 42 of file header.hh.

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

#define DIFF_VER  )     (x)->version
 

Definition at line 50 of file header.hh.

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

#define DIFFUSION_PORT   DEFAULT_DIFFUSION_PORT
 

Definition at line 45 of file header.hh.

#define DIFFUSION_VERSION   3
 

Definition at line 37 of file header.hh.

Referenced by DiffusionRouting::addFilter(), GeoRoutingFilter::beaconTimeout(), GeoRoutingFilter::broadcastHeuristicValue(), DiffusionRouting::filterKeepaliveTimeout(), GradientFilter::forwardData(), DiffusionCoreAgent::forwardMessage(), DiffusionRouting::interestTimeout(), GeoRoutingFilter::preProcessFilter(), GradientFilter::processNewMessage(), DiffusionRouting::recvMessage(), DiffusionCoreAgent::recvMessage(), GradientFilter::reinforcementTimeout(), DiffusionRouting::removeFilter(), DiffusionRouting::send(), GradientFilter::sendInterest(), DiffusionRouting::sendMessage(), DiffusionCoreAgent::sendMessage(), GeoRoutingFilter::sendNeighborRequest(), and GradientFilter::sendPositiveReinforcement().

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

Definition at line 83 of file header.hh.

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

#define LAST_HOP  )     (x)->last_hop
 

Definition at line 48 of file header.hh.

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

#define LOCALHOST_ADDR   -2
 

Definition at line 36 of file header.hh.

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

#define MAX_PKT_SIZE   8192
 

Definition at line 34 of file header.hh.

#define MSG_TYPE  )     (x)->msg_type
 

Definition at line 51 of file header.hh.

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

#define NEXT_HOP  )     (x)->next_hop
 

Definition at line 49 of file header.hh.

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

#define NUM_ATTR  )     (x)->num_attr
 

Definition at line 55 of file header.hh.

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

#define PKT_NUM  )     (x)->pkt_num
 

Definition at line 53 of file header.hh.

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

#define RDM_ID  )     (x)->rdm_id
 

Definition at line 54 of file header.hh.

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

#define SRC_PORT  )     (x)->src_port
 

Definition at line 56 of file header.hh.

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


Typedef Documentation

typedef enum msg_t_ diff_msg_t
 

typedef int* DiffPacket
 

Definition at line 32 of file header.hh.

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


Enumeration Type Documentation

enum msg_t_
 

Enumeration values:
INTEREST 
POSITIVE_REINFORCEMENT 
NEGATIVE_REINFORCEMENT 
DATA 
EXPLORATORY_DATA 
PUSH_EXPLORATORY_DATA 
CONTROL 
REDIRECT 

Definition at line 59 of file header.hh.

00059                     {
00060   INTEREST,
00061   POSITIVE_REINFORCEMENT,
00062   NEGATIVE_REINFORCEMENT,
00063   DATA,
00064   EXPLORATORY_DATA,
00065   PUSH_EXPLORATORY_DATA,
00066   CONTROL,
00067   REDIRECT,
00068 } diff_msg_t;


Generated on Tue Apr 20 12:20:47 2004 for NS2.26SourcesOriginal by doxygen 1.3.3