#include <differential_forwarding/DFApp.h>


Public Member Functions | |
| DFApp (const struct timeval &timeout, DTN::Link *link) | |
| Constructor. | |
| virtual | ~DFApp () |
| Virtual destructor. | |
| void | beacon () |
| Generate and broadcast a beacon message. | |
| virtual DTN::Link * | linked (const DTN::ByteString &dest)=0 |
| Find a node to which we can send data. | |
Protected Member Functions | |
| virtual DTN::Bundle * | createBeacon ()=0 |
| Generate our beacon to broadcast to neighbors. | |
| struct timeval & | timeout () const |
| Accessor. | |
| DTN::Link * | link () |
| Accessor. | |
DTN::Application::process() is left unimplemented in this class, as is Mobility::MobileApp::newNeighbor(). This should be added to a Mobility::MobileNode using addMobileApp(), rather than addApplication(). The former calls the latter, as well as adding the application to a separate list of apps to notify when a new neighbor comes into view.
Definition at line 53 of file DFApp.h.
| DFApp::DFApp | ( | const struct timeval & | timeout, | |
| DTN::Link * | link | |||
| ) |
| virtual DTN::Link* DifferentialForwarding::DFApp::linked | ( | const DTN::ByteString & | dest | ) | [pure virtual] |
Find a node to which we can send data.
| dest | The destination address |
Referenced by DifferentialForwarding::DFPolicy::forward(), and DifferentialForwarding::DFPolicy::forwardOn().
| virtual DTN::Bundle* DifferentialForwarding::DFApp::createBeacon | ( | ) | [protected, pure virtual] |
Generate our beacon to broadcast to neighbors.
Referenced by beacon().
1.5.4