IBR-DTNSuite
0.8
|
#include <StaticRoutingExtension.h>
Classes | |
class | ClearRoutesTask |
class | EIDRoute |
class | ExpireTask |
class | ProcessBundleTask |
class | RegexRoute |
class | RouteChangeTask |
class | SearchNextBundleTask |
class | StaticRoute |
class | Task |
Public Member Functions | |
StaticRoutingExtension () | |
virtual | ~StaticRoutingExtension () |
void | notify (const dtn::core::Event *evt) |
Protected Member Functions | |
void | run () |
void | __cancellation () |
Definition at line 21 of file StaticRoutingExtension.h.
Definition at line 32 of file StaticRoutingExtension.cpp.
Definition at line 37 of file StaticRoutingExtension.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().
void dtn::routing::StaticRoutingExtension::__cancellation | ( | ) | [protected, virtual] |
Implements ibrcommon::Thread.
Definition at line 51 of file StaticRoutingExtension.cpp.
References ibrcommon::Queue< T >::abort().
void dtn::routing::StaticRoutingExtension::notify | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::routing::BaseRouter::ThreadedExtension.
Definition at line 326 of file StaticRoutingExtension.cpp.
References dtn::routing::QueueBundleEvent::bundle, dtn::net::ConnectionEvent::CONNECTION_UP, dtn::routing::StaticRouteChangeEvent::destination, dtn::core::NodeEvent::getAction(), dtn::core::Node::getEID(), dtn::core::NodeEvent::getNode(), dtn::net::TransferCompletedEvent::getPeer(), dtn::net::TransferAbortedEvent::getPeer(), dtn::utils::Clock::getUnixTimestamp(), dtn::core::TimeEvent::getUnixTimestamp(), dtn::routing::StaticRouteChangeEvent::nexthop, dtn::core::NODE_AVAILABLE, dtn::routing::QueueBundleEvent::origin, dtn::routing::StaticRouteChangeEvent::pattern, dtn::net::ConnectionEvent::peer, ibrcommon::Queue< T >::push(), dtn::routing::StaticRouteChangeEvent::ROUTE_ADD, dtn::routing::StaticRouteChangeEvent::ROUTE_CLEAR, dtn::routing::StaticRouteChangeEvent::ROUTE_DEL, dtn::net::ConnectionEvent::state, dtn::routing::StaticRouteChangeEvent::timeout, and dtn::routing::StaticRouteChangeEvent::type.
void dtn::routing::StaticRoutingExtension::run | ( | ) | [protected, virtual] |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 56 of file StaticRoutingExtension.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::routing::StaticRoutingExtension::StaticRoute::getDestination(), dtn::routing::StaticRoutingExtension::StaticRoute::getExpiration(), dtn::daemon::Configuration::getInstance(), dtn::daemon::Configuration::getNetwork(), dtn::data::EID::getNode(), ibrcommon::Queue< T >::getnpop(), dtn::daemon::Configuration::Network::getStaticRoutes(), dtn::data::MetaBundle::hopcount, IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::routing::BaseRouter::Extension::isRouting(), dtn::core::BundleCore::local, dtn::routing::StaticRoutingExtension::StaticRoute::match(), ibrcommon::Queue< T >::push(), dtn::routing::StaticRouteChangeEvent::raiseEvent(), dtn::routing::StaticRouteChangeEvent::ROUTE_ADD, dtn::data::BundleID::source, dtn::routing::StaticRoutingExtension::StaticRoute::toString(), dtn::routing::BaseRouter::Extension::transferTo(), and ibrcommon::Thread::yield().