IBR-DTNSuite 0.6

dtn::core::BundleCore Class Reference

#include <BundleCore.h>

Inheritance diagram for dtn::core::BundleCore:
Collaboration diagram for dtn::core::BundleCore:

List of all members.

Public Member Functions

WallClockgetClock ()
void setStorage (dtn::core::BundleStorage *storage)
dtn::core::BundleStoragegetStorage ()
void transferTo (const dtn::data::EID &destination, const dtn::data::BundleID &bundle)
void addConvergenceLayer (dtn::net::ConvergenceLayer *cl)
void addConnection (const dtn::core::Node &n)
void removeConnection (const dtn::core::Node &n)
const std::set< dtn::core::NodegetNeighbors ()
void raiseEvent (const dtn::core::Event *evt)
virtual void validate (const dtn::data::PrimaryBlock &obj) const throw (RejectedException)
virtual void validate (const dtn::data::Block &obj, const size_t length) const throw (RejectedException)
virtual void validate (const dtn::data::Bundle &obj) const throw (RejectedException)
virtual const std::string getName () const

Static Public Member Functions

static BundleCoregetInstance ()
static void processBlocks (dtn::data::Bundle &b)

Static Public Attributes

static dtn::data::EID local
static size_t blocksizelimit = 0
static bool forwarding = true

Protected Member Functions

virtual void componentUp ()
virtual void componentDown ()

Detailed Description

The BundleCore manage the Bundle Protocol basics

Definition at line 31 of file BundleCore.h.


Member Function Documentation

void dtn::core::BundleCore::addConnection ( const dtn::core::Node n)

Definition at line 125 of file BundleCore.cpp.

References dtn::net::ConnectionManager::addConnection().

Referenced by __daemon_run().

Here is the call graph for this function:

void dtn::core::BundleCore::addConvergenceLayer ( dtn::net::ConvergenceLayer cl)

Definition at line 120 of file BundleCore.cpp.

References dtn::net::ConnectionManager::addConvergenceLayer().

Referenced by createConvergenceLayers().

Here is the call graph for this function:

void dtn::core::BundleCore::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 80 of file BundleCore.cpp.

References dtn::daemon::IntegratedComponent::terminate().

Here is the call graph for this function:

void dtn::core::BundleCore::componentUp ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 71 of file BundleCore.cpp.

References dtn::daemon::IntegratedComponent::initialize(), and dtn::daemon::IntegratedComponent::startup().

Here is the call graph for this function:

WallClock & dtn::core::BundleCore::getClock ( )

Definition at line 100 of file BundleCore.cpp.

const std::string dtn::core::BundleCore::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 281 of file BundleCore.cpp.

const std::set< dtn::core::Node > dtn::core::BundleCore::getNeighbors ( )

Definition at line 135 of file BundleCore.cpp.

References dtn::net::ConnectionManager::getNeighbors().

Here is the call graph for this function:

dtn::core::BundleStorage & dtn::core::BundleCore::getStorage ( )

Definition at line 91 of file BundleCore.cpp.

Referenced by __daemon_run(), and raiseEvent().

void dtn::core::BundleCore::removeConnection ( const dtn::core::Node n)

Definition at line 130 of file BundleCore.cpp.

References dtn::net::ConnectionManager::removeConnection().

Here is the call graph for this function:

void dtn::core::BundleCore::setStorage ( dtn::core::BundleStorage storage)

Definition at line 86 of file BundleCore.cpp.

Referenced by createBundleStorage().

void dtn::core::BundleCore::transferTo ( const dtn::data::EID destination,
const dtn::data::BundleID bundle 
)
void dtn::core::BundleCore::validate ( const dtn::data::Block obj,
const size_t  length 
) const throw (RejectedException) [virtual]

Implements dtn::data::Validator.

Definition at line 211 of file BundleCore.cpp.

References blocksizelimit, IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.

void dtn::core::BundleCore::validate ( const dtn::data::PrimaryBlock obj) const throw (RejectedException) [virtual]

Implements dtn::data::Validator.

Definition at line 186 of file BundleCore.cpp.

References forwarding, IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, and local.


Member Data Documentation

Define a global block size limit. This is used in the validator to reject bundles while receiving.

Definition at line 61 of file BundleCore.h.

Referenced by setGlobalVars(), and validate().

bool dtn::core::BundleCore::forwarding = true [static]

Define if forwarding is allowed. If set to false, this daemon only accepts bundles for local applications.

Definition at line 66 of file BundleCore.h.

Referenced by __daemon_run(), and validate().


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