|
IBR-DTNSuite
0.8
|
#include <AbstractWorker.h>


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 |
Definition at line 22 of file AbstractWorker.h.
Definition at line 116 of file AbstractWorker.cpp.
| dtn::core::AbstractWorker::~AbstractWorker | ( | ) | [virtual] |
Definition at line 149 of file AbstractWorker.cpp.
References shutdown().

| virtual void dtn::core::AbstractWorker::callbackBundleReceived | ( | const Bundle & | b | ) | [pure virtual] |
| const EID dtn::core::AbstractWorker::getWorkerURI | ( | ) | const [virtual] |
Definition at line 160 of file AbstractWorker.cpp.
References _eid.
| void dtn::core::AbstractWorker::initialize | ( | const string | uri, |
| const size_t | cbhe, | ||
| bool | async | ||
| ) | [protected] |
Definition at line 130 of file AbstractWorker.cpp.
References _eid, dtn::data::EID::CBHE_SCHEME, dtn::data::EID::getDelimiter(), IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, dtn::core::BundleCore::local, and ibrcommon::Exception::what().
Referenced by dtn::daemon::CapsuleWorker::CapsuleWorker(), dtn::daemon::DTNTPWorker::DTNTPWorker(), and dtn::daemon::EchoWorker::EchoWorker().

| void dtn::core::AbstractWorker::shutdown | ( | ) | [protected] |
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().

| void dtn::core::AbstractWorker::unsubscribe | ( | const dtn::data::EID & | endpoint | ) | [protected] |
unsubscribe to a end-point
Definition at line 125 of file AbstractWorker.cpp.
EID dtn::core::AbstractWorker::_eid [protected] |
Definition at line 59 of file AbstractWorker.h.
Referenced by getWorkerURI(), and initialize().