#include <EchoWorker.h>
Inherits dtn::core::AbstractWorker.

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.
| dtn::daemon::EchoWorker::EchoWorker | ( | ) |
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(), dtn::core::AbstractWorker::getWorkerURI(), IBRCOMMON_LOGGER_DEBUG, and dtn::core::AbstractWorker::transmit().

1.7.1