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


Classes | |
| class | ProcessBundleTask |
| class | SearchNextBundleTask |
| class | Task |
Public Member Functions | |
| NeighborRoutingExtension () | |
| virtual | ~NeighborRoutingExtension () |
| void | notify (const dtn::core::Event *evt) |
| virtual void | stopExtension () |
Protected Member Functions | |
| void | run () |
| bool | __cancellation () |
Definition at line 27 of file NeighborRoutingExtension.h.
| dtn::routing::NeighborRoutingExtension::NeighborRoutingExtension | ( | ) |
Definition at line 37 of file NeighborRoutingExtension.cpp.
| dtn::routing::NeighborRoutingExtension::~NeighborRoutingExtension | ( | ) | [virtual] |
Definition at line 41 of file NeighborRoutingExtension.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().

| bool dtn::routing::NeighborRoutingExtension::__cancellation | ( | ) | [protected, virtual] |
Reimplemented from ibrcommon::Thread.
Definition at line 52 of file NeighborRoutingExtension.cpp.
References ibrcommon::Queue< T >::abort().

| void dtn::routing::NeighborRoutingExtension::notify | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::routing::BaseRouter::ThreadedExtension.
Definition at line 169 of file NeighborRoutingExtension.cpp.
References dtn::routing::QueueBundleEvent::bundle, dtn::core::BUNDLE_DELETED, dtn::data::StatusReportBlock::DEPLETED_STORAGE, dtn::data::MetaBundle::destination, dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, dtn::data::MetaBundle::get(), dtn::core::NodeEvent::getAction(), dtn::net::TransferCompletedEvent::getBundle(), dtn::net::TransferAbortedEvent::getBundleID(), dtn::core::Node::getEID(), dtn::core::NodeEvent::getNode(), dtn::data::EID::getNode(), dtn::net::TransferAbortedEvent::getPeer(), dtn::net::TransferCompletedEvent::getPeer(), IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, dtn::core::NODE_AVAILABLE, dtn::routing::QueueBundleEvent::origin, dtn::data::MetaBundle::procflags, ibrcommon::Queue< T >::push(), dtn::core::BundleEvent::raise(), dtn::net::TransferAbortedEvent::reason, dtn::net::TransferAbortedEvent::REASON_BUNDLE_DELETED, dtn::net::TransferAbortedEvent::REASON_CONNECTION_DOWN, dtn::net::TransferAbortedEvent::REASON_REFUSED, dtn::net::TransferAbortedEvent::REASON_RETRY_LIMIT_REACHED, dtn::net::TransferAbortedEvent::REASON_UNDEFINED, dtn::core::BundleStorage::remove(), and dtn::data::BundleID::toString().

| void dtn::routing::NeighborRoutingExtension::run | ( | ) | [protected, virtual] |
Abstract interface for thread context run method.
SearchNextBundleTask triggers a search for a bundle to transfer to another host. This Task is generated by TransferCompleted, TransferAborted and node events.
process a received bundle
Implements ibrcommon::Thread.
Definition at line 58 of file NeighborRoutingExtension.cpp.
References dtn::data::MetaBundle::destination, dtn::core::BundleStorage::get(), dtn::core::Node::getEID(), dtn::core::BundleCore::getInstance(), dtn::data::EID::getNode(), ibrcommon::Queue< T >::getnpop(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, ibrcommon::Queue< T >::push(), dtn::routing::BaseRouter::Extension::transferTo(), and ibrcommon::Thread::yield().

| void dtn::routing::NeighborRoutingExtension::stopExtension | ( | ) | [virtual] |
Implements dtn::routing::BaseRouter::ThreadedExtension.
Definition at line 47 of file NeighborRoutingExtension.cpp.
References ibrcommon::Queue< T >::abort().
