#include <dtn/Route.h>


Public Member Functions | |
| Route (Link *l) | |
| Constructor. | |
| virtual | ~Route () |
| Virtual destructor. | |
| virtual bool | matches (const Bundle &b) const =0 |
| Test the appropriateness of this route for a Bundle. | |
| Link & | link () const |
| The Link held by this route. | |
Protected Member Functions | |
| Route () | |
| Default constructor (disabled). | |
Protected Attributes | |
| Link * | m_link |
| The Link held by this route. | |
This defines a simple interface of a Link and a method to determine if a particular bundle can be reasonably sent along that Link.
Definition at line 46 of file Route.h.
| Route::Route | ( | Link * | l | ) |
| virtual bool DTN::Route::matches | ( | const Bundle & | b | ) | const [pure 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 |
Implemented in DTN::ExplicitRoute, and DTN::PrefixRoute.
Link* DTN::Route::m_link [protected] |
1.5.4