IBR-DTNSuite
0.8
|
#include <EchoWorker.h>
Public Member Functions | |
EchoWorker () | |
virtual | ~EchoWorker () |
void | callbackBundleReceived (const Bundle &b) |
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 20 of file EchoWorker.h.
Definition at line 13 of file EchoWorker.cpp.
References dtn::core::AbstractWorker::initialize().
virtual dtn::daemon::EchoWorker::~EchoWorker | ( | ) | [inline, virtual] |
Definition at line 24 of file EchoWorker.h.
void dtn::daemon::EchoWorker::callbackBundleReceived | ( | const Bundle & | b | ) | [virtual] |
Implements dtn::core::AbstractWorker.
Definition at line 18 of file EchoWorker.cpp.
References dtn::data::PrimaryBlock::_lifetime, dtn::data::PrimaryBlock::_source, dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, dtn::data::PayloadBlock::getBLOB(), dtn::data::Bundle::getBlock(), IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.