IBR-DTNSuite  0.8
dtn::net::ConnectionManager Class Reference

#include <ConnectionManager.h>

Inheritance diagram for dtn::net::ConnectionManager:
Collaboration diagram for dtn::net::ConnectionManager:

List of all members.

Classes

class  ShutdownException

Public Member Functions

 ConnectionManager ()
virtual ~ConnectionManager ()
void addConnection (const dtn::core::Node &n)
void removeConnection (const dtn::core::Node &n)
void addConvergenceLayer (ConvergenceLayer *cl)
void queue (const dtn::data::EID &eid, const dtn::data::BundleID &b)
void raiseEvent (const dtn::core::Event *evt)
void open (const dtn::core::Node &node)
void queue (const ConvergenceLayer::Job &job)
const std::set< dtn::core::NodegetNeighbors ()
bool isNeighbor (const dtn::core::Node &)
const dtn::core::Node getNeighbor (const dtn::data::EID &eid)
virtual const std::string getName () const

Protected Member Functions

void discovered (const dtn::core::Node &node)
virtual void componentUp ()
virtual void componentDown ()

Detailed Description

Definition at line 41 of file ConnectionManager.h.


Constructor & Destructor Documentation


Member Function Documentation

void dtn::net::ConnectionManager::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 67 of file ConnectionManager.cpp.

References dtn::net::ConnectionEvent::className, and dtn::core::EventReceiver::unbindEvent().

Here is the call graph for this function:

void dtn::net::ConnectionManager::discovered ( const dtn::core::Node node) [protected]

trigger for periodical discovery of nodes

Parameters:
node

Definition at line 204 of file ConnectionManager.cpp.

References dtn::core::Node::getEID(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::core::BundleCore::local, dtn::core::NODE_AVAILABLE, and dtn::core::NodeEvent::raise().

Referenced by raiseEvent().

Here is the call graph for this function:

const std::string dtn::net::ConnectionManager::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 404 of file ConnectionManager.cpp.

Get the neighbor with the given EID.

Exceptions:
dtn::net::NeighborNotAvailableExceptionif the neighbor is not available.
Parameters:
eidThe EID of the neighbor.
Returns:
A node object with all neighbor data.

Definition at line 376 of file ConnectionManager.cpp.

References dtn::core::Node::getEID(), and dtn::core::Node::isAvailable().

Referenced by dtn::core::BundleCore::getNeighbor().

Here is the call graph for this function:

get a set with all neighbors

Returns:

Definition at line 361 of file ConnectionManager.cpp.

References dtn::core::Node::isAvailable().

Referenced by dtn::core::BundleCore::getNeighbors().

Here is the call graph for this function:

Checks if a node is already known as neighbor.

Parameters:
@return

Definition at line 390 of file ConnectionManager.cpp.

References dtn::core::Node::isAvailable().

Referenced by dtn::core::BundleCore::isNeighbor().

Here is the call graph for this function:

Definition at line 285 of file ConnectionManager.cpp.

References dtn::net::ConvergenceLayer::getDiscoveryProtocol(), dtn::core::Node::has(), and dtn::net::ConvergenceLayer::open().

Referenced by raiseEvent().

Here is the call graph for this function:

Definition at line 356 of file ConnectionManager.cpp.

Referenced by queue(), and dtn::core::BundleCore::transferTo().

Definition at line 185 of file ConnectionManager.cpp.

References dtn::core::Node::getEID(), IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.

Referenced by dtn::core::BundleCore::removeConnection().

Here is the call graph for this function:


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