IBR-DTNSuite  0.12
dtn::daemon::Configuration::Discovery Class Reference

#include <Configuration.h>

Inheritance diagram for dtn::daemon::Configuration::Discovery:
Inheritance graph
Collaboration diagram for dtn::daemon::Configuration::Discovery:
Collaboration graph

Public Member Functions

bool enabled () const
 
bool announce () const
 
bool shortbeacon () const
 
int version () const
 
const std::set
< ibrcommon::vaddress
address () const throw (ParameterNotFoundException)
 
int port () const
 
unsigned int timeout () const
 
bool enableCrosslayer () const
 

Protected Member Functions

 Discovery ()
 
virtual ~Discovery ()
 
void load (const ibrcommon::ConfigFile &conf)
 

Protected Attributes

bool _enabled
 
unsigned int _timeout
 
bool _crosslayer
 

Friends

class Configuration
 

Detailed Description

Definition at line 165 of file Configuration.h.

Constructor & Destructor Documentation

dtn::daemon::Configuration::Discovery::Discovery ( )
protected

Definition at line 85 of file Configuration.cpp.

dtn::daemon::Configuration::Discovery::~Discovery ( )
protectedvirtual

Definition at line 126 of file Configuration.cpp.

Member Function Documentation

const std::set< ibrcommon::vaddress > dtn::daemon::Configuration::Discovery::address ( ) const
throw (ParameterNotFoundException
)

Definition at line 589 of file Configuration.cpp.

References dtn::daemon::Configuration::getInstance(), ibrcommon::ConfigFile::read(), and dtn::utils::Utils::tokenize().

Here is the call graph for this function:

bool dtn::daemon::Configuration::Discovery::announce ( ) const

Definition at line 951 of file Configuration.cpp.

References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().

Referenced by dtn::net::DiscoveryAgent::onBeaconReceived().

Here is the call graph for this function:

bool dtn::daemon::Configuration::Discovery::enableCrosslayer ( ) const
bool dtn::daemon::Configuration::Discovery::enabled ( ) const

Definition at line 946 of file Configuration.cpp.

void dtn::daemon::Configuration::Discovery::load ( const ibrcommon::ConfigFile conf)
protectedvirtual

Implements dtn::daemon::Configuration::Extension.

Definition at line 404 of file Configuration.cpp.

References ibrcommon::ConfigFile::read().

Referenced by dtn::daemon::Configuration::load().

Here is the call graph for this function:

int dtn::daemon::Configuration::Discovery::port ( ) const

Definition at line 607 of file Configuration.cpp.

References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().

Here is the call graph for this function:

bool dtn::daemon::Configuration::Discovery::shortbeacon ( ) const

Definition at line 956 of file Configuration.cpp.

References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().

Here is the call graph for this function:

unsigned int dtn::daemon::Configuration::Discovery::timeout ( ) const

Definition at line 612 of file Configuration.cpp.

Referenced by dtn::net::DiscoveryAgent::onBeaconReceived().

int dtn::daemon::Configuration::Discovery::version ( ) const

Definition at line 961 of file Configuration.cpp.

References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().

Referenced by dtn::net::DiscoveryAgent::obtainBeacon().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class Configuration
friend

Definition at line 167 of file Configuration.h.

Member Data Documentation

bool dtn::daemon::Configuration::Discovery::_crosslayer
protected

Definition at line 175 of file Configuration.h.

bool dtn::daemon::Configuration::Discovery::_enabled
protected

Definition at line 173 of file Configuration.h.

Referenced by dtn::daemon::Configuration::params().

unsigned int dtn::daemon::Configuration::Discovery::_timeout
protected

Definition at line 174 of file Configuration.h.


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