IBR-DTNSuite
0.12
|
#include <Configuration.h>
Classes | |
class | ProphetConfig |
Public Member Functions | |
const std::list< NetConfig > & | getInterfaces () const |
const std::list< Node > & | getStaticNodes () const |
const std::multimap < std::string, std::string > & | getStaticRoutes () const |
RoutingExtension | getRoutingExtension () const |
bool | doForwarding () const |
bool | doPreferDirect () const |
bool | getTCPOptionNoDelay () const |
dtn::data::Length | getTCPChunkSize () const |
dtn::data::Timeout | getTCPIdleTimeout () const |
dtn::data::Timeout | getAutoConnect () const |
bool | doFragmentation () const |
ProphetConfig | getProphetConfig () const |
bool | doScheduling () const |
std::set< ibrcommon::vinterface > | getInternetDevices () const |
size_t | getLinkRequestInterval () const |
Protected Member Functions | |
Network () | |
virtual | ~Network () |
void | load (const ibrcommon::ConfigFile &conf) |
Protected Attributes | |
std::multimap< std::string, std::string > | _static_routes |
std::list< Node > | _nodes |
std::list< NetConfig > | _interfaces |
std::string | _routing |
bool | _forwarding |
bool | _prefer_direct |
bool | _tcp_nodelay |
dtn::data::Length | _tcp_chunksize |
dtn::data::Timeout | _tcp_idle_timeout |
ibrcommon::vinterface | _default_net |
bool | _use_default_net |
dtn::data::Timeout | _auto_connect |
bool | _fragmentation |
bool | _scheduling |
ProphetConfig | _prophet_config |
std::set< ibrcommon::vinterface > | _internet_devices |
size_t | _link_request_interval |
Friends | |
class | Configuration |
Definition at line 272 of file Configuration.h.
|
protected |
Definition at line 94 of file Configuration.cpp.
|
protectedvirtual |
Definition at line 129 of file Configuration.cpp.
bool dtn::daemon::Configuration::Network::doForwarding | ( | ) | const |
Define if forwarding is enabled. If not, only local bundles will be accepted.
Definition at line 981 of file Configuration.cpp.
Referenced by dtn::dht::DHTNameService::componentUp().
bool dtn::daemon::Configuration::Network::doFragmentation | ( | ) | const |
Definition at line 991 of file Configuration.cpp.
Referenced by dtn::api::Registration::underflow().
bool dtn::daemon::Configuration::Network::doPreferDirect | ( | ) | const |
Define if direct routes are preferred instead of spreading bundles to all neighbors.
Definition at line 986 of file Configuration.cpp.
Referenced by dtn::routing::FloodRoutingExtension::run(), and dtn::routing::EpidemicRoutingExtension::run().
bool dtn::daemon::Configuration::Network::doScheduling | ( | ) | const |
Definition at line 996 of file Configuration.cpp.
dtn::data::Timeout dtn::daemon::Configuration::Network::getAutoConnect | ( | ) | const |
Definition at line 1016 of file Configuration.cpp.
Referenced by dtn::net::ConnectionManager::componentUp().
const std::list< Configuration::NetConfig > & dtn::daemon::Configuration::Network::getInterfaces | ( | ) | const |
Returns all configured network interfaces
Definition at line 584 of file Configuration.cpp.
Referenced by dtn::dht::DHTNameService::componentRun().
std::set< ibrcommon::vinterface > dtn::daemon::Configuration::Network::getInternetDevices | ( | ) | const |
Definition at line 1026 of file Configuration.cpp.
Referenced by dtn::core::BundleCore::eventNotify().
size_t dtn::daemon::Configuration::Network::getLinkRequestInterval | ( | ) | const |
Definition at line 1031 of file Configuration.cpp.
Configuration::Network::ProphetConfig dtn::daemon::Configuration::Network::getProphetConfig | ( | ) | const |
Definition at line 1021 of file Configuration.cpp.
Configuration::RoutingExtension dtn::daemon::Configuration::Network::getRoutingExtension | ( | ) | const |
Definition at line 971 of file Configuration.cpp.
References dtn::daemon::Configuration::DEFAULT_ROUTING, dtn::daemon::Configuration::EPIDEMIC_ROUTING, dtn::daemon::Configuration::FLOOD_ROUTING, dtn::daemon::Configuration::NO_ROUTING, and dtn::daemon::Configuration::PROPHET_ROUTING.
const std::list< Node > & dtn::daemon::Configuration::Network::getStaticNodes | ( | ) | const |
Returns all static neighboring nodes
Definition at line 928 of file Configuration.cpp.
const std::multimap< std::string, std::string > & dtn::daemon::Configuration::Network::getStaticRoutes | ( | ) | const |
Returns all static routes
Definition at line 923 of file Configuration.cpp.
Referenced by dtn::routing::StaticRoutingExtension::run().
dtn::data::Length dtn::daemon::Configuration::Network::getTCPChunkSize | ( | ) | const |
Definition at line 1006 of file Configuration.cpp.
dtn::data::Timeout dtn::daemon::Configuration::Network::getTCPIdleTimeout | ( | ) | const |
Definition at line 1011 of file Configuration.cpp.
Referenced by dtn::net::TCPConnection::eventConnectionUp().
bool dtn::daemon::Configuration::Network::getTCPOptionNoDelay | ( | ) | const |
Definition at line 1001 of file Configuration.cpp.
|
protectedvirtual |
Load static routes
load static nodes
get routing extension
get the routing extension
prefer direct routes
get network interfaces
TCP options
auto connect interval
fragmentation support
read internet devices
scheduling support
read link-request-interval
Implements dtn::daemon::Configuration::Extension.
Definition at line 663 of file Configuration.cpp.
References dtn::core::Node::add(), dtn::core::Node::getEID(), dtn::daemon::Configuration::NetConfig::iface, ibrcommon::ConfigFile::keyExists(), dtn::daemon::Configuration::NetConfig::mtu, dtn::daemon::Configuration::NetConfig::NETWORK_DGRAM_ETHERNET, dtn::daemon::Configuration::NetConfig::NETWORK_DGRAM_LOWPAN, dtn::daemon::Configuration::NetConfig::NETWORK_DGRAM_UDP, dtn::daemon::Configuration::NetConfig::NETWORK_EMAIL, dtn::daemon::Configuration::NetConfig::NETWORK_FILE, dtn::daemon::Configuration::NetConfig::NETWORK_HTTP, dtn::daemon::Configuration::NetConfig::NETWORK_LOWPAN, dtn::daemon::Configuration::NetConfig::NETWORK_TCP, dtn::daemon::Configuration::NetConfig::NETWORK_UDP, dtn::daemon::Configuration::NetConfig::NETWORK_UNKNOWN, dtn::core::Node::NODE_STATIC_GLOBAL, dtn::core::Node::NODE_STATIC_LOCAL, dtn::daemon::Configuration::NetConfig::port, ibrcommon::ConfigFile::read(), dtn::core::Node::setConnectImmediately(), dtn::utils::Utils::tokenize(), and dtn::daemon::Configuration::NetConfig::url.
Referenced by dtn::daemon::Configuration::load().
|
friend |
Definition at line 274 of file Configuration.h.
|
protected |
Definition at line 314 of file Configuration.h.
|
protected |
Definition at line 312 of file Configuration.h.
Referenced by dtn::daemon::Configuration::params().
|
protected |
Definition at line 307 of file Configuration.h.
|
protected |
Definition at line 315 of file Configuration.h.
|
protected |
Definition at line 305 of file Configuration.h.
|
protected |
Definition at line 318 of file Configuration.h.
|
protected |
Definition at line 319 of file Configuration.h.
|
protected |
Definition at line 304 of file Configuration.h.
|
protected |
Definition at line 308 of file Configuration.h.
|
protected |
Definition at line 317 of file Configuration.h.
|
protected |
Definition at line 306 of file Configuration.h.
|
protected |
Definition at line 316 of file Configuration.h.
|
protected |
Definition at line 303 of file Configuration.h.
|
protected |
Definition at line 310 of file Configuration.h.
|
protected |
Definition at line 311 of file Configuration.h.
|
protected |
Definition at line 309 of file Configuration.h.
|
protected |
Definition at line 313 of file Configuration.h.
Referenced by dtn::daemon::Configuration::params().