#include <dtn/ExplicitRoute.h>


Public Member Functions | |
| ExplicitRoute (const ByteString &t, Link *l) | |
| Constructor. | |
| virtual | ~ExplicitRoute () |
| Virtual destructor. | |
| bool | matches (const Bundle &b) const |
| Test the appropriateness of this route for a Bundle. | |
| const ByteString & | target () const |
| |
Protected Member Functions | |
| ExplicitRoute () | |
| Default constructor (disabled). | |
Definition at line 42 of file ExplicitRoute.h.
| ExplicitRoute::ExplicitRoute | ( | const ByteString & | t, | |
| Link * | l | |||
| ) |
Constructor.
| t | The address of a target (destination) | |
| l | The outgoing link for this route (passed to Route) |
Definition at line 36 of file ExplicitRoute.cc.
| bool ExplicitRoute::matches | ( | const Bundle & | b | ) | const [virtual] |
Test the appropriateness of this route for a Bundle.
In general, this will depend on the specific subtype of Route. For example, a prefix routing algorithm will look at the Bundle's destination and see if the route is configured with a prefix of that destination.
| b | A bundle to forward |
Implements DTN::Route.
Definition at line 47 of file ExplicitRoute.cc.
References DTN::Bundle::destination().
1.5.4