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

NR Class Reference

#include <nr.hh>

Inheritance diagram for NR:

Inheritance graph
[legend]
List of all members.

Public Types

typedef long handle

Public Member Functions

virtual handle subscribe (NRAttrVec *interest_declarations, NR::Callback *cb)=0
virtual int unsubscribe (handle subscription_handle)=0
virtual handle publish (NRAttrVec *publication_declarations)=0
virtual int unpublish (handle publication_handle)=0
virtual int send (handle publication_handle, NRAttrVec *)=0

Static Public Member Functions

NRcreateNR (u_int16_t port=0)

Member Typedef Documentation

typedef long NR::handle
 

Definition at line 302 of file nr.hh.

Referenced by DiffusionRouting::processControlMessage().


Member Function Documentation

NR * NR::createNR u_int16_t  port = 0  )  [static]
 

Definition at line 123 of file dr.cc.

References DEBUG_ALWAYS, DiffPrint(), and dr.

Referenced by GeoRoutingFilter::GeoRoutingFilter(), GradientFilter::GradientFilter(), LogFilter::LogFilter(), PingReceiverApp::PingReceiverApp(), PingSenderApp::PingSenderApp(), PushReceiverApp::PushReceiverApp(), PushSenderApp::PushSenderApp(), SrcRtFilter::SrcRtFilter(), and TagFilter::TagFilter().

00124 {
00125   // Create Diffusion Routing Class
00126   if (dr)
00127     return dr;
00128 
00129   dr = new DiffusionRouting(port);
00130 
00131 #ifdef USE_THREADS
00132   int retval;
00133   pthread_t thread;
00134 
00135   // Fork a thread for receiving Messages
00136   retval = pthread_create(&thread, NULL, &ReceiveThread, (void *)dr);
00137 
00138   if (retval){
00139     DiffPrint(DEBUG_ALWAYS, "Error creating receiving thread ! Aborting...\n");
00140     exit(-1);
00141   }
00142 #endif // USE_THREADS
00143 
00144   return dr;
00145 }

Here is the call graph for this function:

virtual handle NR::publish NRAttrVec publication_declarations  )  [pure virtual]
 

Implemented in DiffusionRouting.

Referenced by PushSenderApp::setupPublication(), and PingSenderApp::setupPublication().

virtual int NR::send handle  publication_handle,
NRAttrVec
[pure virtual]
 

Implemented in DiffusionRouting.

Referenced by PushSenderApp::run(), and PingSenderApp::run().

virtual handle NR::subscribe NRAttrVec interest_declarations,
NR::Callback cb
[pure virtual]
 

Implemented in DiffusionRouting.

Referenced by PushReceiverApp::setupSubscription(), PingSenderApp::setupSubscription(), and PingReceiverApp::setupSubscription().

virtual int NR::unpublish handle  publication_handle  )  [pure virtual]
 

Implemented in DiffusionRouting.

virtual int NR::unsubscribe handle  subscription_handle  )  [pure virtual]
 

Implemented in DiffusionRouting.


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 13:05:51 2004 for NS2.26SourcesOriginal by doxygen 1.3.3