IBR-DTNSuite
0.8
|
#include <Configuration.h>
Classes | |
struct | 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 | getTCPOptionNoDelay () const |
size_t | getTCPChunkSize () const |
size_t | getTCPIdleTimeout () const |
bool | doDynamicRebind () const |
size_t | getAutoConnect () const |
bool | doFragmentation () const |
ProphetConfig | getProphetConfig () 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 | _tcp_nodelay |
size_t | _tcp_chunksize |
size_t | _tcp_idle_timeout |
ibrcommon::vinterface | _default_net |
bool | _use_default_net |
bool | _dynamic_rebind |
size_t | _auto_connect |
bool | _fragmentation |
ProphetConfig | _prophet_config |
Friends | |
class | Configuration |
Definition at line 314 of file Configuration.h.
dtn::daemon::Configuration::Network::Network | ( | ) | [protected] |
Definition at line 83 of file Configuration.cpp.
dtn::daemon::Configuration::Network::~Network | ( | ) | [protected, virtual] |
Definition at line 109 of file Configuration.cpp.
bool dtn::daemon::Configuration::Network::doDynamicRebind | ( | ) | const |
Definition at line 862 of file Configuration.cpp.
Referenced by __daemon_run().
bool dtn::daemon::Configuration::Network::doForwarding | ( | ) | const |
Define if forwarding is enabled. If not, only local bundles will be accepted.
Definition at line 837 of file Configuration.cpp.
Referenced by __daemon_run().
bool dtn::daemon::Configuration::Network::doFragmentation | ( | ) | const |
Definition at line 842 of file Configuration.cpp.
Referenced by __daemon_run().
size_t dtn::daemon::Configuration::Network::getAutoConnect | ( | ) | const |
Definition at line 867 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 447 of file Configuration.cpp.
Referenced by __daemon_run(), dtn::dht::DHTNameService::componentRun(), and createConvergenceLayers().
Configuration::Network::ProphetConfig dtn::daemon::Configuration::Network::getProphetConfig | ( | ) | const |
Definition at line 872 of file Configuration.cpp.
Referenced by __daemon_run().
Definition at line 828 of file Configuration.cpp.
References dtn::daemon::Configuration::DEFAULT_ROUTING, dtn::daemon::Configuration::EPIDEMIC_ROUTING, dtn::daemon::Configuration::FLOOD_ROUTING, and dtn::daemon::Configuration::PROPHET_ROUTING.
Referenced by __daemon_run().
const std::list< Node > & dtn::daemon::Configuration::Network::getStaticNodes | ( | ) | const |
Returns all static neighboring nodes
Definition at line 743 of file Configuration.cpp.
Referenced by __daemon_run().
const std::multimap< std::string, std::string > & dtn::daemon::Configuration::Network::getStaticRoutes | ( | ) | const |
Returns all static routes
Definition at line 738 of file Configuration.cpp.
Referenced by dtn::routing::StaticRoutingExtension::run().
size_t dtn::daemon::Configuration::Network::getTCPChunkSize | ( | ) | const |
Definition at line 852 of file Configuration.cpp.
size_t dtn::daemon::Configuration::Network::getTCPIdleTimeout | ( | ) | const |
Definition at line 857 of file Configuration.cpp.
Referenced by dtn::net::TCPConnection::eventConnectionUp().
bool dtn::daemon::Configuration::Network::getTCPOptionNoDelay | ( | ) | const |
Definition at line 847 of file Configuration.cpp.
void dtn::daemon::Configuration::Network::load | ( | const ibrcommon::ConfigFile & | conf | ) | [protected, virtual] |
Load static routes
load static nodes
get routing extension
get the routing extension
get network interfaces
TCP options
dynamic rebind
auto connect interval
fragmentation support
Implements dtn::daemon::Configuration::Extension.
Definition at line 509 of file Configuration.cpp.
References dtn::core::Node::add(), dtn::core::Node::CONN_BLUETOOTH, dtn::core::Node::CONN_DGRAM_ETHERNET, dtn::core::Node::CONN_DGRAM_LOWPAN, dtn::core::Node::CONN_DGRAM_UDP, dtn::core::Node::CONN_FILE, dtn::core::Node::CONN_HTTP, dtn::core::Node::CONN_LOWPAN, dtn::core::Node::CONN_TCPIP, dtn::core::Node::CONN_UDPIP, dtn::core::Node::CONN_UNDEFINED, dtn::core::Node::getEID(), 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_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, ibrcommon::ConfigFile::read(), dtn::core::Node::setConnectImmediately(), and dtn::utils::Utils::tokenize().
Referenced by dtn::daemon::Configuration::load().
friend class Configuration [friend] |
Definition at line 316 of file Configuration.h.
size_t dtn::daemon::Configuration::Network::_auto_connect [protected] |
Definition at line 348 of file Configuration.h.
Definition at line 345 of file Configuration.h.
Referenced by dtn::daemon::Configuration::params().
bool dtn::daemon::Configuration::Network::_dynamic_rebind [protected] |
Definition at line 347 of file Configuration.h.
bool dtn::daemon::Configuration::Network::_forwarding [protected] |
Definition at line 341 of file Configuration.h.
bool dtn::daemon::Configuration::Network::_fragmentation [protected] |
Definition at line 349 of file Configuration.h.
std::list<NetConfig> dtn::daemon::Configuration::Network::_interfaces [protected] |
Definition at line 339 of file Configuration.h.
std::list<Node> dtn::daemon::Configuration::Network::_nodes [protected] |
Definition at line 338 of file Configuration.h.
Definition at line 350 of file Configuration.h.
std::string dtn::daemon::Configuration::Network::_routing [protected] |
Definition at line 340 of file Configuration.h.
std::multimap<std::string, std::string> dtn::daemon::Configuration::Network::_static_routes [protected] |
Definition at line 337 of file Configuration.h.
size_t dtn::daemon::Configuration::Network::_tcp_chunksize [protected] |
Definition at line 343 of file Configuration.h.
size_t dtn::daemon::Configuration::Network::_tcp_idle_timeout [protected] |
Definition at line 344 of file Configuration.h.
bool dtn::daemon::Configuration::Network::_tcp_nodelay [protected] |
Definition at line 342 of file Configuration.h.
bool dtn::daemon::Configuration::Network::_use_default_net [protected] |
Definition at line 346 of file Configuration.h.
Referenced by dtn::daemon::Configuration::params().