IBR-DTNSuite  0.8
dtn::daemon::Configuration::Network Class Reference

#include <Configuration.h>

Inheritance diagram for dtn::daemon::Configuration::Network:
Collaboration diagram for dtn::daemon::Configuration::Network:

List of all members.

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

Detailed Description

Definition at line 314 of file Configuration.h.


Constructor & Destructor Documentation

Definition at line 83 of file Configuration.cpp.

Definition at line 109 of file Configuration.cpp.


Member Function Documentation

Returns:
True, if the dynamic rebind feature is requested.

Definition at line 862 of file Configuration.cpp.

Referenced by __daemon_run().

Define if forwarding is enabled. If not, only local bundles will be accepted.

Returns:
True, if forwarding is enabled.

Definition at line 837 of file Configuration.cpp.

Referenced by __daemon_run().

Returns:
True, if fragmentation support is enabled.

Definition at line 842 of file Configuration.cpp.

Referenced by __daemon_run().

Returns:
Each x seconds try to connect to all available nodes.

Definition at line 867 of file Configuration.cpp.

Referenced by dtn::net::ConnectionManager::componentUp().

Returns all configured network interfaces

Definition at line 447 of file Configuration.cpp.

Referenced by __daemon_run(), dtn::dht::DHTNameService::componentRun(), and createConvergenceLayers().

Returns:
a struct containing the prophet configuration parameters

Definition at line 872 of file Configuration.cpp.

Referenced by __daemon_run().

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().

Returns:
The size of TCP chunks for bundles.

Definition at line 852 of file Configuration.cpp.

Returns:
The idle timeout for TCP connections in seconds.

Definition at line 857 of file Configuration.cpp.

Referenced by dtn::net::TCPConnection::eventConnectionUp().

Returns:
True, is tcp options NODELAY should be set.

Definition at line 847 of file Configuration.cpp.

void dtn::daemon::Configuration::Network::load ( const ibrcommon::ConfigFile conf) [protected, virtual]

Friends And Related Function Documentation

friend class Configuration [friend]

Definition at line 316 of file Configuration.h.


Member Data Documentation

Definition at line 348 of file Configuration.h.

Definition at line 347 of file Configuration.h.

Definition at line 341 of file Configuration.h.

Definition at line 349 of file Configuration.h.

Definition at line 339 of file Configuration.h.

Definition at line 338 of file Configuration.h.

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.

Definition at line 343 of file Configuration.h.

Definition at line 344 of file Configuration.h.

Definition at line 342 of file Configuration.h.


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