#include <TestApplication.h>

Public Member Functions | |
| TestApplication (string destination) | |
| ~TestApplication () | |
| void | tick () |
| TransmitReport | callbackBundleReceived (const Bundle &b) |
Private Member Functions | |
| void | reportIt () |
Private Attributes | |
| unsigned int | m_dtntime |
| string | m_destination |
The application suffix to the node eid is /test.
| dtn::daemon::TestApplication::TestApplication | ( | string | destination | ) | [inline] |
| dtn::daemon::TestApplication::~TestApplication | ( | ) | [inline] |
| void dtn::daemon::TestApplication::tick | ( | ) | [virtual] |
overload this method to do your own stuff.
Implements dtn::utils::Service.
References m_dtntime, and reportIt().
| TransmitReport dtn::daemon::TestApplication::callbackBundleReceived | ( | const Bundle & | b | ) | [virtual] |
| void dtn::daemon::TestApplication::reportIt | ( | ) | [private] |
References dtn::data::Bundle::appendBlock(), dtn::core::BundleCore::getLocalURI(), dtn::data::Bundle::getPrimaryFlags(), dtn::core::AbstractWorker::getWorkerURI(), dtn::data::LIFETIME, m_destination, dtn::data::BundleFactory::newBundle(), dtn::data::REQUEST_REPORT_OF_BUNDLE_DELIVERY, dtn::data::PrimaryFlags::setCustodyRequested(), dtn::data::Bundle::setDestination(), dtn::data::ProcessingFlags::setFlag(), dtn::data::Bundle::setInteger(), dtn::data::Bundle::setPrimaryFlags(), dtn::data::Bundle::setReportTo(), dtn::data::Bundle::setSource(), and dtn::core::AbstractWorker::transmit().
Referenced by tick().
unsigned int dtn::daemon::TestApplication::m_dtntime [private] |
Referenced by tick().
string dtn::daemon::TestApplication::m_destination [private] |
Referenced by reportIt().
1.5.6