#include <sampleapp/SampleApp.h>


Public Member Functions | |
| SampleApp (Manager *m) | |
| Constructor. | |
| virtual | ~SampleApp () |
| Virtual destructor. | |
| void | send (const DTN::ByteString &dest, const DTN::ByteString &data, const Time &when) |
| Send data to an application on another node. | |
Protected Member Functions | |
| const DTN::ByteString & | appID () const |
| |
| void | process (const DTN::Bundle &b) |
| Process application data. | |
Static Protected Member Functions | |
| static const DTN::ByteString & | id () |
| |
Definition at line 48 of file SampleApp.h.
| void SampleApp::send | ( | const DTN::ByteString & | dest, | |
| const DTN::ByteString & | data, | |||
| const Time & | when | |||
| ) |
Send data to an application on another node.
| dest | The address of the destination | |
| data | The application data | |
| when | The time at which to send the data |
Definition at line 57 of file SampleApp.cc.
References WrapNode::bundleLifetime(), DTN::Bundle::kCustodial, DTN::Bundle::kData, SampleAppNS::Manager::lookup(), DTN::Consumer::m_owner, Clock::schedule(), and Time::tv.
Referenced by sampleapp_send().
| void SampleApp::process | ( | const DTN::Bundle & | b | ) | [protected, virtual] |
Process application data.
| b | The bundle containing the application data |
Implements DTN::Application.
Definition at line 78 of file SampleApp.cc.
References DTN::Bundle::size().
1.5.4