IBR-DTNSuite
0.8
|
#include <FloodRoutingExtension.h>
Classes | |
class | SearchNextBundleTask |
class | Task |
Public Member Functions | |
FloodRoutingExtension () | |
virtual | ~FloodRoutingExtension () |
void | notify (const dtn::core::Event *evt) |
Protected Member Functions | |
void | run () |
void | __cancellation () |
Definition at line 30 of file FloodRoutingExtension.h.
Definition at line 38 of file FloodRoutingExtension.cpp.
References IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.
Definition at line 44 of file FloodRoutingExtension.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().
void dtn::routing::FloodRoutingExtension::__cancellation | ( | ) | [protected, virtual] |
Implements ibrcommon::Thread.
Definition at line 113 of file FloodRoutingExtension.cpp.
References ibrcommon::Queue< T >::abort().
void dtn::routing::FloodRoutingExtension::notify | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::routing::BaseRouter::ThreadedExtension.
Definition at line 50 of file FloodRoutingExtension.cpp.
References dtn::net::ConnectionEvent::CONNECTION_UP, dtn::core::NodeEvent::getAction(), dtn::core::Node::getEID(), dtn::core::BundleCore::getInstance(), dtn::core::BundleCore::getNeighbors(), dtn::core::NodeEvent::getNode(), dtn::net::TransferCompletedEvent::getPeer(), dtn::net::TransferAbortedEvent::getPeer(), dtn::core::NODE_AVAILABLE, dtn::net::ConnectionEvent::peer, ibrcommon::Queue< T >::push(), and dtn::net::ConnectionEvent::state.
void dtn::routing::FloodRoutingExtension::run | ( | ) | [protected, virtual] |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 118 of file FloodRoutingExtension.cpp.
References dtn::data::MetaBundle::destination, dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, dtn::data::MetaBundle::get(), dtn::storage::BundleStorage::get(), dtn::routing::NeighborDatabase::get(), dtn::data::EID::getNode(), ibrcommon::Queue< T >::getnpop(), dtn::data::MetaBundle::hopcount, IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::routing::BaseRouter::Extension::isRouting(), dtn::core::BundleCore::local, dtn::data::BundleID::source, dtn::routing::BaseRouter::Extension::transferTo(), ibrcommon::Exception::what(), and ibrcommon::Thread::yield().