Full node configuration. More...
#include <rats.h>
Public Attributes | |
| uint16_t | listen_port |
| int | enable_listen |
| const char * | bind_address |
| rats_security_t | security |
| const char * | data_dir |
| const char * | protocol_name |
| const char * | protocol_version |
| size_t | max_peers |
Full node configuration.
Obtain a sane-defaults instance with rats_config_default(), set the fields you care about, then pass it to rats_create_config(). Zero-initialising this struct yourself is NOT safe (enable_listen would be 0 → a dial-only node); always start from the default. String fields are borrowed only for the duration of the create call; NULL on any of them selects the library default shown below.
| rats_security_t rats_config_t::security |