Back to Site
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1#pragma once
2
8#include "util/rats_export.h"
9#include <cstdint>
10#include <string>
11
12namespace librats {
13
14struct RATS_API NodeConfig {
17 uint16_t listen_port = 0;
18 bool enable_listen = true;
19
28 std::string bind_address = "";
29
32 size_t reactor_threads = 1;
33
38 size_t max_peers = 0;
39
41 enum class Security { Noise, Plaintext };
42 Security security = Security::Noise;
43
50 std::string protocol = "librats/1.0";
51
55 std::string data_dir = "";
56
61 bool enable_network_monitor = true;
62};
63
64} // namespace librats
Definition node.h:66
Security
Secure channel to use for peer connections.
Definition config.h:41