Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions

dtn::core::BundleCore Class Reference

#include <BundleCore.h>

Inherits dtn::daemon::IntegratedComponent, dtn::core::EventReceiver, and dtn::data::Validator.

Collaboration diagram for dtn::core::BundleCore:
Collaboration graph
[legend]

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)
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 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 122 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 117 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]

Definition at line 77 of file BundleCore.cpp.

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

Here is the call graph for this function:

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

Definition at line 68 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 97 of file BundleCore.cpp.

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

Definition at line 291 of file BundleCore.cpp.

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

Definition at line 88 of file BundleCore.cpp.

Referenced by __daemon_run(), and raiseEvent().

void dtn::core::BundleCore::raiseEvent ( const dtn::core::Event evt  ) 
void dtn::core::BundleCore::setStorage ( dtn::core::BundleStorage storage  ) 

Definition at line 83 of file BundleCore.cpp.

Referenced by createBundleStorage().

void dtn::core::BundleCore::transferTo ( const dtn::data::EID destination,
const dtn::data::BundleID bundle 
)

Definition at line 102 of file BundleCore.cpp.

References dtn::net::ConnectionManager::queue(), and dtn::routing::RequeueBundleEvent::raise().

Referenced by dtn::routing::BaseRouter::Extension::transferTo().

Here is the call graph for this function:

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 220 of file BundleCore.cpp.

References blocksizelimit, and IBRCOMMON_LOGGER.

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

Implements dtn::data::Validator.

Definition at line 195 of file BundleCore.cpp.

References forwarding, IBRCOMMON_LOGGER, 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 60 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 65 of file BundleCore.h.

Referenced by __daemon_run(), and validate().


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