#include <dht_discovery.h>
Public Attributes | |
| uint16_t | dht_port = 0 |
| 0 = ephemeral | |
| std::string | bind_address = "" |
| std::string | data_dir = "" |
| routing-table persistence dir (empty = cwd). Set to the node's data_dir to co-locate state. | |
| bool | enable_ipv4 = true |
| run the IPv4 Kademlia network | |
| bool | enable_ipv6 = true |
| run the IPv6 Kademlia network (BEP 32) | |
| std::string | discovery_key = "librats" |
| app namespace | |
| std::vector< Address > | bootstrap_nodes |
| empty → default internet nodes | |
| std::chrono::milliseconds | search_interval {5000} |
| std::chrono::milliseconds | announce_interval {30000} |
| bool | discover_external_ip = true |
| Probe a STUN server once at startup to learn our public IP and seed the DHT node id per BEP 42. | |
| std::vector< Address > | stun_servers |
| empty → built-in public defaults | |
| std::chrono::milliseconds | stun_timeout {3000} |
Definition at line 42 of file dht_discovery.h.
| std::chrono::milliseconds librats::DhtDiscovery::Config::announce_interval {30000} |
Definition at line 51 of file dht_discovery.h.
| std::string librats::DhtDiscovery::Config::bind_address = "" |
Definition at line 44 of file dht_discovery.h.
| std::vector<Address> librats::DhtDiscovery::Config::bootstrap_nodes |
empty → default internet nodes
Definition at line 49 of file dht_discovery.h.
| std::string librats::DhtDiscovery::Config::data_dir = "" |
routing-table persistence dir (empty = cwd). Set to the node's data_dir to co-locate state.
Definition at line 45 of file dht_discovery.h.
| uint16_t librats::DhtDiscovery::Config::dht_port = 0 |
0 = ephemeral
Definition at line 43 of file dht_discovery.h.
| bool librats::DhtDiscovery::Config::discover_external_ip = true |
Probe a STUN server once at startup to learn our public IP and seed the DHT node id per BEP 42.
Without it we still converge via the slower in-DHT "ip" voting, but bootstrap under the wrong node id until then.
Definition at line 56 of file dht_discovery.h.
| std::string librats::DhtDiscovery::Config::discovery_key = "librats" |
app namespace
Definition at line 48 of file dht_discovery.h.
| bool librats::DhtDiscovery::Config::enable_ipv4 = true |
run the IPv4 Kademlia network
Definition at line 46 of file dht_discovery.h.
| bool librats::DhtDiscovery::Config::enable_ipv6 = true |
run the IPv6 Kademlia network (BEP 32)
Definition at line 47 of file dht_discovery.h.
| std::chrono::milliseconds librats::DhtDiscovery::Config::search_interval {5000} |
Definition at line 50 of file dht_discovery.h.
| std::vector<Address> librats::DhtDiscovery::Config::stun_servers |
empty → built-in public defaults
Definition at line 57 of file dht_discovery.h.
| std::chrono::milliseconds librats::DhtDiscovery::Config::stun_timeout {3000} |
Definition at line 58 of file dht_discovery.h.