dtn::core::BundleCore Class Reference

#include <BundleCore.h>

Inheritance diagram for dtn::core::BundleCore:
dtn::daemon::IntegratedComponent dtn::core::EventReceiver dtn::data::Validator dtn::daemon::Component

List of all members.

Public Member Functions

WallClockgetClock ()
void setStorage (dtn::core::BundleStorage *storage)
dtn::core::BundleStoragegetStorage ()
void transferTo (const dtn::data::EID &destination, dtn::data::Bundle &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)

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

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

Referenced by main().

void dtn::core::BundleCore::addConvergenceLayer ( dtn::net::ConvergenceLayer cl  ) 
void dtn::core::BundleCore::componentDown (  )  [protected, virtual]
void dtn::core::BundleCore::componentUp (  )  [protected, virtual]
WallClock & dtn::core::BundleCore::getClock (  ) 

Definition at line 88 of file BundleCore.cpp.

BundleCore & dtn::core::BundleCore::getInstance (  )  [static]
const std::set< dtn::core::Node > dtn::core::BundleCore::getNeighbors (  ) 

Definition at line 116 of file BundleCore.cpp.

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

dtn::core::BundleStorage & dtn::core::BundleCore::getStorage (  ) 
void dtn::core::BundleCore::raiseEvent ( const dtn::core::Event evt  )  [virtual]
void dtn::core::BundleCore::setStorage ( dtn::core::BundleStorage storage  ) 

Definition at line 78 of file BundleCore.cpp.

Referenced by createBundleStorage().

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

Implements dtn::data::Validator.

Definition at line 238 of file BundleCore.cpp.

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 219 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 187 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 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 validate().


The documentation for this class was generated from the following files:
Generated on Mon Aug 23 08:12:57 2010 for IBR-DTNSuite by  doxygen 1.6.3