IBR-DTNSuite 0.6

dtn::core::AbstractWorker Class Reference

#include <AbstractWorker.h>

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

List of all members.

Classes

class  AbstractWorkerAsync

Public Member Functions

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

Protected Member Functions

void initialize (const string uri, bool async=false)
void transmit (const Bundle &bundle)
void shutdown ()

Protected Attributes

EID _eid

Detailed Description

Definition at line 21 of file AbstractWorker.h.


Constructor & Destructor Documentation

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

Definition at line 103 of file AbstractWorker.cpp.

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

Definition at line 118 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 129 of file AbstractWorker.cpp.

References _eid.

void dtn::core::AbstractWorker::initialize ( const string  uri,
bool  async = false 
) [protected]

Definition at line 107 of file AbstractWorker.cpp.

References _eid, IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, dtn::core::BundleCore::local, and ibrcommon::Exception::what().

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

Here is the call graph for this function:

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

Definition at line 123 of file AbstractWorker.cpp.

Referenced by ~AbstractWorker().

void dtn::core::AbstractWorker::transmit ( const Bundle bundle) [protected]

Definition at line 134 of file AbstractWorker.cpp.

References dtn::core::BundleGeneratedEvent::raise().

Here is the call graph for this function:


Member Data Documentation

Definition at line 58 of file AbstractWorker.h.

Referenced by getWorkerURI(), and initialize().


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