#include <mobileforwarding/Forwarding.h>


Public Member Functions | |
| Forwarding (DTN::Node *owner, DTN::Link *link, Protocol *prot) | |
| Constructor. | |
| virtual | ~Forwarding () |
| Virtual destructor. | |
| bool | forward (DTN::Bundle *b) |
| Attepmt to forward a Bundle. | |
| DTN::Bundle * | forwardOn (const DTN::Link &l) |
| Attepmt to forward along a Link that has become available. | |
Definition at line 46 of file Forwarding.h.
Constructor.
| owner | The node at which this policy resides | |
| link | The physical link for the owner | |
| prot | The mobile forwarding protocol |
Definition at line 39 of file Forwarding.cc.
| bool Forwarding::forward | ( | DTN::Bundle * | b | ) | [virtual] |
Attepmt to forward a Bundle.
Concrete derived classes must implement this.
| b | A Bundle to forward |
| true | b was forwarded | |
| false | b was not forwarded and should be considered for local storage |
Implements DTN::ForwardingPolicy.
Definition at line 51 of file Forwarding.cc.
References DTN::Link::available(), MobileForwarding::Protocol::getLink(), DTN::Bundle::kBcast, DTN::NodePolicy::m_owner, DTN::Bundle::recv(), MobileForwarding::Protocol::tweak(), DTN::Bundle::type(), and MobileForwarding::Protocol::visible().
| DTN::Bundle * Forwarding::forwardOn | ( | const DTN::Link & | l | ) | [virtual] |
Attepmt to forward along a Link that has become available.
Concrete derived classes must implement this.
| l | A Link capable of transmitting a new Bundle |
Implements DTN::ForwardingPolicy.
Definition at line 89 of file Forwarding.cc.
References MobileForwarding::Protocol::getLink(), DTN::NoRouteDrop::inst, DTN::BundlePointer::isNull(), DTN::Bundle::kBcast, DTN::NodePolicy::m_owner, DTN::BundlePointer::next(), DTN::Bundle::recv(), DTN::BundlePointer::repr(), DTN::Bundle::type(), and MobileForwarding::Protocol::visible().
1.5.4