IBR-DTNSuite  0.8
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, const size_t cbhe, bool async)
void transmit (const Bundle &bundle)
void shutdown ()
void subscribe (const dtn::data::EID &endpoint)
void unsubscribe (const dtn::data::EID &endpoint)

Protected Attributes

EID _eid

Detailed Description

Definition at line 22 of file AbstractWorker.h.


Constructor & Destructor Documentation

Definition at line 149 of file AbstractWorker.cpp.

References shutdown().

Here is the call graph for this function:


Member Function Documentation

const EID dtn::core::AbstractWorker::getWorkerURI ( ) const [virtual]

Definition at line 160 of file AbstractWorker.cpp.

References _eid.

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

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

Definition at line 165 of file AbstractWorker.cpp.

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

Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), and dtn::daemon::DTNTPWorker::raiseEvent().

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 125 of file AbstractWorker.cpp.


Member Data Documentation

Definition at line 59 of file AbstractWorker.h.

Referenced by getWorkerURI(), and initialize().


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