Back to Site
Loading...
Searching...
No Matches
rats_config_t Struct Reference

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
 

Detailed Description

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.

Definition at line 69 of file rats.h.

Member Data Documentation

◆ bind_address

const char* rats_config_t::bind_address

Definition at line 72 of file rats.h.

◆ data_dir

const char* rats_config_t::data_dir

Definition at line 74 of file rats.h.

◆ enable_listen

int rats_config_t::enable_listen

Definition at line 71 of file rats.h.

◆ listen_port

uint16_t rats_config_t::listen_port

Definition at line 70 of file rats.h.

◆ max_peers

size_t rats_config_t::max_peers

Definition at line 77 of file rats.h.

◆ protocol_name

const char* rats_config_t::protocol_name

Definition at line 75 of file rats.h.

◆ protocol_version

const char* rats_config_t::protocol_version

Definition at line 76 of file rats.h.

◆ security

rats_security_t rats_config_t::security

Definition at line 73 of file rats.h.


The documentation for this struct was generated from the following file: