|
IBR-DTNSuite 0.6
|
#include <BaseRouter.h>


Public Types | |
| enum | CALLBACK_ACTION { ROUTE_CALLBACK_FORWARDED = 0, ROUTE_CALLBACK_ABORTED = 1, ROUTE_CALLBACK_REJECTED = 2, ROUTE_CALLBACK_DELETED = 3 } |
Public Member Functions | |
| Extension () | |
| virtual | ~Extension ()=0 |
| virtual void | notify (const dtn::core::Event *evt)=0 |
| void | transferTo (const dtn::data::EID &destination, const dtn::data::BundleID &id) |
| void | transferTo (NeighborDatabase::NeighborEntry &entry, const dtn::data::BundleID &id) |
Protected Member Functions | |
| BaseRouter & | operator* () |
Friends | |
| class | BaseRouter |
Definition at line 62 of file BaseRouter.h.
| ROUTE_CALLBACK_FORWARDED | |
| ROUTE_CALLBACK_ABORTED | |
| ROUTE_CALLBACK_REJECTED | |
| ROUTE_CALLBACK_DELETED |
Definition at line 70 of file BaseRouter.h.
| dtn::routing::BaseRouter::Extension::Extension | ( | ) |
base implementation of the Extension class
Definition at line 51 of file BaseRouter.cpp.
| dtn::routing::BaseRouter::Extension::~Extension | ( | ) | [pure virtual] |
Definition at line 54 of file BaseRouter.cpp.
| virtual void dtn::routing::BaseRouter::Extension::notify | ( | const dtn::core::Event * | evt | ) | [pure virtual] |
| BaseRouter & dtn::routing::BaseRouter::Extension::operator* | ( | ) | [protected] |
Definition at line 57 of file BaseRouter.cpp.
| void dtn::routing::BaseRouter::Extension::transferTo | ( | NeighborDatabase::NeighborEntry & | entry, |
| const dtn::data::BundleID & | id | ||
| ) |
Definition at line 80 of file BaseRouter.cpp.
References dtn::routing::NeighborDatabase::NeighborEntry::acquireTransfer(), dtn::routing::NeighborDatabase::NeighborEntry::eid, and dtn::core::BundleCore::getInstance().

| void dtn::routing::BaseRouter::Extension::transferTo | ( | const dtn::data::EID & | destination, |
| const dtn::data::BundleID & | id | ||
| ) |
Transfer one bundle to another node.
| BundleNotFoundException | if the bundle do not exist. |
| destination | The EID of the other node. |
| id | The ID of the bundle to transfer. This bundle must be stored in the storage. |
Definition at line 68 of file BaseRouter.cpp.
Referenced by dtn::routing::StaticRoutingExtension::run(), dtn::routing::NeighborRoutingExtension::run(), dtn::routing::FloodRoutingExtension::run(), and dtn::routing::EpidemicRoutingExtension::run().
friend class BaseRouter [friend] |
Definition at line 91 of file BaseRouter.h.