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

#include <Configuration.h>

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

List of all members.

Public Member Functions

bool enabled () const
bool randomPort () const
unsigned int getPort () const
string getID () const
bool randomID () const
bool isDNSBootstrappingEnabled () const
std::vector< string > getDNSBootstrappingNames () const
bool isIPBootstrappingEnabled () const
std::vector< string > getIPBootstrappingIPs () const
string getIPv4Binding () const
string getIPv6Binding () const
string getPathToNodeFiles () const
bool isIPv4Enabled () const
bool isIPv6Enabled () const
std::vector< int > getPortFilter () const
bool isBlacklistEnabled () const
bool isSelfAnnouncingEnabled () const
int getMinimumRating () const
bool isNeighbourAnnouncementEnabled () const
bool isNeighbourAllowedToAnnounceMe () const
bool ignoreDHTNeighbourInformations () const

Protected Member Functions

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

Friends

class Configuration

Detailed Description

Definition at line 541 of file Configuration.h.


Constructor & Destructor Documentation

Definition at line 99 of file Configuration.cpp.

dtn::daemon::Configuration::DHT::~DHT ( ) [protected, virtual]

Definition at line 112 of file Configuration.cpp.


Member Function Documentation

Returns:
True, if the dht name service is enabled

Definition at line 1193 of file Configuration.cpp.

Referenced by __daemon_run().

Returns:
List of domain names for bootstrapping

Definition at line 1223 of file Configuration.cpp.

Returns:
a string, which should be used to generate a dht id

Definition at line 1208 of file Configuration.cpp.

Returns:
list of all IP(and port) informations

Definition at line 1233 of file Configuration.cpp.

Returns:
a exact IPv4 address, to be used to bind the dht IPv4 socket

Definition at line 1238 of file Configuration.cpp.

Returns:
a exact IPv6 address, to be used to bind the dht IPv6 socket

Definition at line 1242 of file Configuration.cpp.

Returns:
the minimum rating of a dht node information

Definition at line 1267 of file Configuration.cpp.

Gives a path to a file, where the dtndht lib could save good nodes on shutdown, or read good nodes used as the last session to bootstrap from them. If it doesn't exist, it will be created by the lib on writing good nodes.

Returns:
a string with the path to the file

Definition at line 1247 of file Configuration.cpp.

Returns:
the port, which should be used for the dht

Definition at line 1203 of file Configuration.cpp.

Returns:
a list of all allowed ports

If this method return true, neighbours of a found node should be ignored. This can be useful, if any routing algorithm can do this instead. If a routing algorithm, like prophet, askes also for the neighbours of a node, this method should return true, otherwise, the sent informations about the neighbours will be used to create static routes to the neighbour over the answering node.

Returns:
True, if the neighbours of a found Node should be ignored, default is false

Definition at line 1287 of file Configuration.cpp.

Returns:
True, if a blacklist should be used by the dtndht lib

Definition at line 1282 of file Configuration.cpp.

Returns:
True, if dns bootstrapping is not disabled

Definition at line 1218 of file Configuration.cpp.

Returns:
True, if a IP (and port) information was given

Definition at line 1228 of file Configuration.cpp.

Returns:
True, if IPv4 should be used for the DHT

Definition at line 1252 of file Configuration.cpp.

Returns:
True, if IPv6 should be used for the DHT

Definition at line 1257 of file Configuration.cpp.

Returns:
True, if all neighbours are allowed to announce me

Definition at line 1277 of file Configuration.cpp.

Returns:
True, if I announce my neighbours too

Definition at line 1272 of file Configuration.cpp.

Returns:
True, if this daemon should announce itself on the dht

Definition at line 1262 of file Configuration.cpp.

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

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

Definition at line 383 of file Configuration.cpp.

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

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

Here is the call graph for this function:

Returns:
True, if no string was given to generate a dht id

Definition at line 1213 of file Configuration.cpp.

Returns:
True, if a random port will be chosen

Definition at line 1198 of file Configuration.cpp.


Friends And Related Function Documentation

friend class Configuration [friend]

Definition at line 543 of file Configuration.h.


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