IBR-DTN  1.0.0
dtn::core::AbstractWorker Class Referenceabstract

#include <AbstractWorker.h>

Inheritance diagram for dtn::core::AbstractWorker:
Inheritance graph
Collaboration diagram for dtn::core::AbstractWorker:
Collaboration graph

Public Member Functions

 AbstractWorker ()
 
virtual ~AbstractWorker ()
 
virtual const EID getWorkerURI () const
 
virtual void callbackBundleReceived (const Bundle &b)=0
 

Protected Member Functions

void initialize (const std::string &uri)
 
void transmit (dtn::data::Bundle &bundle)
 
void shutdown ()
 
void subscribe (const dtn::data::EID &endpoint)
 
void unsubscribe (const dtn::data::EID &endpoint)
 

Protected Attributes

dtn::data::EID _eid
 

Detailed Description

Definition at line 44 of file AbstractWorker.h.

Constructor & Destructor Documentation

dtn::core::AbstractWorker::AbstractWorker ( )

Definition at line 144 of file AbstractWorker.cpp.

dtn::core::AbstractWorker::~AbstractWorker ( )
virtual

Definition at line 169 of file AbstractWorker.cpp.

References shutdown().

Here is the call graph for this function:

Member Function Documentation

virtual void dtn::core::AbstractWorker::callbackBundleReceived ( const Bundle b)
pure virtual
const EID dtn::core::AbstractWorker::getWorkerURI ( ) const
virtual

Definition at line 180 of file AbstractWorker.cpp.

References _eid.

void dtn::core::AbstractWorker::initialize ( const std::string &  uri)
protected

Definition at line 158 of file AbstractWorker.cpp.

References _eid, and dtn::data::EID::setApplication().

Referenced by dtn::daemon::EchoWorker::EchoWorker().

Here is the call graph for this function:

void dtn::core::AbstractWorker::shutdown ( )
protected

Definition at line 174 of file AbstractWorker.cpp.

Referenced by ~AbstractWorker().

void dtn::core::AbstractWorker::subscribe ( const dtn::data::EID endpoint)
protected

subscribe to a end-point

Definition at line 148 of file AbstractWorker.cpp.

void dtn::core::AbstractWorker::transmit ( dtn::data::Bundle bundle)
protected

Definition at line 185 of file AbstractWorker.cpp.

References dtn::core::BundleCore::inject(), and dtn::core::BundleCore::local.

Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), and dtn::security::KeyExchanger::submit().

Here is the call graph for this function:

void dtn::core::AbstractWorker::unsubscribe ( const dtn::data::EID endpoint)
protected

unsubscribe to a end-point

Definition at line 153 of file AbstractWorker.cpp.

Member Data Documentation

dtn::data::EID dtn::core::AbstractWorker::_eid
protected

Definition at line 81 of file AbstractWorker.h.

Referenced by getWorkerURI(), and initialize().


The documentation for this class was generated from the following files: