IBR-DTN
1.0.0
|
#include <EchoWorker.h>
Public Member Functions | |
EchoWorker () | |
virtual | ~EchoWorker () |
void | callbackBundleReceived (const Bundle &b) |
![]() | |
AbstractWorker () | |
virtual | ~AbstractWorker () |
virtual const EID | getWorkerURI () const |
Additional Inherited Members | |
![]() | |
void | initialize (const std::string &uri) |
void | transmit (dtn::data::Bundle &bundle) |
void | shutdown () |
void | subscribe (const dtn::data::EID &endpoint) |
void | unsubscribe (const dtn::data::EID &endpoint) |
![]() | |
dtn::data::EID | _eid |
This is a implementation of AbstractWorker and is comparable with a application. This application can send/receive bundles and implements a basic echo funcionality. If a bundle is received the payload of the bundle is copied and returned to the sender.
The application suffix to the node eid is /echo.
Definition at line 41 of file EchoWorker.h.
dtn::daemon::EchoWorker::EchoWorker | ( | ) |
Definition at line 35 of file EchoWorker.cpp.
References dtn::core::AbstractWorker::initialize().
|
inlinevirtual |
Definition at line 45 of file EchoWorker.h.
|
virtual |
Implements dtn::core::AbstractWorker.
Definition at line 40 of file EchoWorker.cpp.
References dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, dtn::data::PrimaryBlock::DTNSEC_REQUEST_ENCRYPT, dtn::data::PrimaryBlock::DTNSEC_REQUEST_SIGN, dtn::data::PrimaryBlock::DTNSEC_STATUS_CONFIDENTIAL, dtn::data::PrimaryBlock::DTNSEC_STATUS_VERIFIED, dtn::data::Bundle::find(), dtn::data::PrimaryBlock::get(), dtn::data::PayloadBlock::getBLOB(), dtn::data::PrimaryBlock::lifetime, and dtn::data::BundleID::source.