IBR-DTNSuite
0.8
|
#include <Configuration.h>
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 |
Definition at line 541 of file Configuration.h.
dtn::daemon::Configuration::DHT::DHT | ( | ) | [protected] |
Definition at line 99 of file Configuration.cpp.
dtn::daemon::Configuration::DHT::~DHT | ( | ) | [protected, virtual] |
Definition at line 112 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::enabled | ( | ) | const |
Definition at line 1193 of file Configuration.cpp.
Referenced by __daemon_run().
std::vector< string > dtn::daemon::Configuration::DHT::getDNSBootstrappingNames | ( | ) | const |
Definition at line 1223 of file Configuration.cpp.
string dtn::daemon::Configuration::DHT::getID | ( | ) | const |
Definition at line 1208 of file Configuration.cpp.
std::vector< string > dtn::daemon::Configuration::DHT::getIPBootstrappingIPs | ( | ) | const |
Definition at line 1233 of file Configuration.cpp.
string dtn::daemon::Configuration::DHT::getIPv4Binding | ( | ) | const |
Definition at line 1238 of file Configuration.cpp.
string dtn::daemon::Configuration::DHT::getIPv6Binding | ( | ) | const |
Definition at line 1242 of file Configuration.cpp.
int dtn::daemon::Configuration::DHT::getMinimumRating | ( | ) | const |
Definition at line 1267 of file Configuration.cpp.
string dtn::daemon::Configuration::DHT::getPathToNodeFiles | ( | ) | const |
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.
Definition at line 1247 of file Configuration.cpp.
unsigned int dtn::daemon::Configuration::DHT::getPort | ( | ) | const |
Definition at line 1203 of file Configuration.cpp.
std::vector<int> dtn::daemon::Configuration::DHT::getPortFilter | ( | ) | const |
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.
Definition at line 1287 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isBlacklistEnabled | ( | ) | const |
Definition at line 1282 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isDNSBootstrappingEnabled | ( | ) | const |
Definition at line 1218 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isIPBootstrappingEnabled | ( | ) | const |
Definition at line 1228 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isIPv4Enabled | ( | ) | const |
Definition at line 1252 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isIPv6Enabled | ( | ) | const |
Definition at line 1257 of file Configuration.cpp.
Definition at line 1277 of file Configuration.cpp.
Definition at line 1272 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::isSelfAnnouncingEnabled | ( | ) | const |
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().
bool dtn::daemon::Configuration::DHT::randomID | ( | ) | const |
Definition at line 1213 of file Configuration.cpp.
bool dtn::daemon::Configuration::DHT::randomPort | ( | ) | const |
Definition at line 1198 of file Configuration.cpp.
friend class Configuration [friend] |
Definition at line 543 of file Configuration.h.