Classes | Public Member Functions | Protected Member Functions

dtn::routing::NeighborRoutingExtension Class Reference

#include <NeighborRoutingExtension.h>

Inherits dtn::routing::BaseRouter::ThreadedExtension.

Collaboration diagram for dtn::routing::NeighborRoutingExtension:
Collaboration graph
[legend]

List of all members.

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 ()

Detailed Description

Definition at line 27 of file NeighborRoutingExtension.h.


Constructor & Destructor Documentation

dtn::routing::NeighborRoutingExtension::NeighborRoutingExtension (  ) 

Definition at line 36 of file NeighborRoutingExtension.cpp.

dtn::routing::NeighborRoutingExtension::~NeighborRoutingExtension (  )  [virtual]

Definition at line 40 of file NeighborRoutingExtension.cpp.

References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:


Member Function Documentation

bool dtn::routing::NeighborRoutingExtension::__cancellation (  )  [protected, virtual]

Reimplemented from ibrcommon::Thread.

Definition at line 51 of file NeighborRoutingExtension.cpp.

References ibrcommon::Queue< T >::abort().

Here is the call graph for this function:

void dtn::routing::NeighborRoutingExtension::notify ( const dtn::core::Event evt  )  [virtual]
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 57 of file NeighborRoutingExtension.cpp.

References dtn::data::MetaBundle::destination, dtn::core::BundleStorage::get(), dtn::core::Node::getEID(), dtn::core::BundleCore::getInstance(), dtn::core::BundleCore::getNeighbors(), dtn::data::EID::getNodeEID(), ibrcommon::Queue< T >::getnpop(), IBRCOMMON_LOGGER_DEBUG, ibrcommon::Queue< T >::push(), dtn::routing::BaseRouter::Extension::transferTo(), and ibrcommon::Thread::yield().

Here is the call graph for this function:

void dtn::routing::NeighborRoutingExtension::stopExtension (  )  [virtual]

Implements dtn::routing::BaseRouter::ThreadedExtension.

Definition at line 46 of file NeighborRoutingExtension.cpp.

References ibrcommon::Queue< T >::abort().

Here is the call graph for this function:


The documentation for this class was generated from the following files: