IBR-DTNSuite
0.12
|
#include <AbstractWorker.h>
Public Member Functions | |
AbstractWorker () | |
virtual | ~AbstractWorker () |
virtual const EID | getWorkerURI () const |
virtual void | callbackBundleReceived (const Bundle &b)=0 |
Public Member Functions inherited from ibrcommon::Mutex | |
Mutex (MUTEX_TYPE type=MUTEX_NORMAL) | |
virtual | ~Mutex () |
virtual void | trylock () throw (MutexException) |
virtual void | enter () throw (MutexException) |
virtual void | leave () throw (MutexException) |
Public Member Functions inherited from ibrcommon::MutexInterface | |
virtual | ~MutexInterface ()=0 |
Protected Member Functions | |
void | initialize (const std::string &uri) |
void | transmit (const Bundle &bundle) |
void | shutdown () |
void | subscribe (const dtn::data::EID &endpoint) |
void | unsubscribe (const dtn::data::EID &endpoint) |
Protected Attributes | |
dtn::data::EID | _eid |
Protected Attributes inherited from ibrcommon::Mutex | |
pthread_mutex_t | m_mutex |
pthread_mutexattr_t | m_attr |
Additional Inherited Members | |
Public Types inherited from ibrcommon::Mutex | |
enum | MUTEX_TYPE { MUTEX_NORMAL = PTHREAD_MUTEX_NORMAL, MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE, MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK } |
Static Public Member Functions inherited from ibrcommon::Mutex | |
static MutexInterface & | dummy () |
Definition at line 43 of file AbstractWorker.h.
dtn::core::AbstractWorker::AbstractWorker | ( | ) |
Definition at line 146 of file AbstractWorker.cpp.
|
virtual |
Definition at line 171 of file AbstractWorker.cpp.
References shutdown().
|
pure virtual |
|
virtual |
Definition at line 182 of file AbstractWorker.cpp.
References _eid.
|
protected |
Definition at line 160 of file AbstractWorker.cpp.
References _eid, ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, dtn::data::EID::setApplication(), and ibrcommon::Exception::what().
Referenced by dtn::daemon::EchoWorker::EchoWorker().
|
protected |
Definition at line 176 of file AbstractWorker.cpp.
Referenced by ~AbstractWorker().
|
protected |
subscribe to a end-point
Definition at line 150 of file AbstractWorker.cpp.
|
protected |
Definition at line 187 of file AbstractWorker.cpp.
References dtn::core::BundleGeneratedEvent::raise().
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived().
|
protected |
unsubscribe to a end-point
Definition at line 155 of file AbstractWorker.cpp.
|
protected |
Definition at line 82 of file AbstractWorker.h.
Referenced by getWorkerURI(), and initialize().