IBR-DTNSuite
0.12
|
#include <Configuration.h>
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 |
Definition at line 165 of file Configuration.h.
|
protected |
Definition at line 85 of file Configuration.cpp.
|
protectedvirtual |
Definition at line 126 of file Configuration.cpp.
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().
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().
bool dtn::daemon::Configuration::Discovery::enableCrosslayer | ( | ) | const |
Definition at line 617 of file Configuration.cpp.
Referenced by dtn::net::UDPConvergenceLayer::onUpdateBeacon(), and dtn::net::TCPConvergenceLayer::onUpdateBeacon().
bool dtn::daemon::Configuration::Discovery::enabled | ( | ) | const |
Definition at line 946 of file Configuration.cpp.
|
protectedvirtual |
Implements dtn::daemon::Configuration::Extension.
Definition at line 404 of file Configuration.cpp.
References ibrcommon::ConfigFile::read().
Referenced by dtn::daemon::Configuration::load().
int dtn::daemon::Configuration::Discovery::port | ( | ) | const |
Definition at line 607 of file Configuration.cpp.
References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().
bool dtn::daemon::Configuration::Discovery::shortbeacon | ( | ) | const |
Definition at line 956 of file Configuration.cpp.
References dtn::daemon::Configuration::getInstance(), and ibrcommon::ConfigFile::read().
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().
|
friend |
Definition at line 167 of file Configuration.h.
|
protected |
Definition at line 175 of file Configuration.h.
|
protected |
Definition at line 173 of file Configuration.h.
Referenced by dtn::daemon::Configuration::params().
|
protected |
Definition at line 174 of file Configuration.h.