IBR-DTNSuite
0.10
|
#include <AbstractWorker.h>
Public Member Functions | |
AbstractWorker () | |
virtual | ~AbstractWorker () |
virtual const EID | getWorkerURI () const |
virtual void | callbackBundleReceived (const Bundle &b)=0 |
![]() | |
Mutex (MUTEX_TYPE type=MUTEX_NORMAL) | |
virtual | ~Mutex () |
virtual void | trylock () throw (MutexException) |
virtual void | enter () throw (MutexException) |
virtual void | leave () throw (MutexException) |
![]() | |
virtual | ~MutexInterface ()=0 |
Protected Member Functions | |
void | initialize (const std::string &uri, const dtn::data::Number &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 |
![]() | |
pthread_mutex_t | m_mutex |
pthread_mutexattr_t | m_attr |
Additional Inherited Members | |
![]() | |
enum | MUTEX_TYPE { MUTEX_NORMAL = PTHREAD_MUTEX_NORMAL, MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE, MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK } |
![]() | |
static MutexInterface & | dummy () |
Definition at line 43 of file AbstractWorker.h.
dtn::core::AbstractWorker::AbstractWorker | ( | ) |
Definition at line 136 of file AbstractWorker.cpp.
|
virtual |
Definition at line 168 of file AbstractWorker.cpp.
References shutdown().
|
pure virtual |
|
virtual |
Definition at line 179 of file AbstractWorker.cpp.
References _eid.
|
protected |
Definition at line 150 of file AbstractWorker.cpp.
References _eid, dtn::data::EID::add(), dtn::data::EID::CBHE_SCHEME, ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, dtn::core::BundleCore::local, dtn::data::SDNV< E >::toString(), and ibrcommon::Exception::what().
Referenced by dtn::daemon::EchoWorker::EchoWorker().
|
protected |
Definition at line 173 of file AbstractWorker.cpp.
Referenced by ~AbstractWorker().
|
protected |
subscribe to a end-point
Definition at line 140 of file AbstractWorker.cpp.
|
protected |
Definition at line 184 of file AbstractWorker.cpp.
References dtn::core::BundleGeneratedEvent::raise().
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived().
|
protected |
unsubscribe to a end-point
Definition at line 145 of file AbstractWorker.cpp.
|
protected |
Definition at line 80 of file AbstractWorker.h.
Referenced by getWorkerURI(), and initialize().