8#include "librats/util/rats_export.h"
9#include "librats/core/types.h"
size_t udp_receive_budget
Bytes all UDP connections together may hold out of order.
size_t send_queue_limit
Bytes a peer's send queue may hold before an application that keeps sending anyway has the peer dropp...
std::string bind_address
Interface to bind the listener to.
bool enable_udp
Accept and dial over the datagram transport.
size_t reactor_threads
Number of reactor threads.
uint16_t listen_port
Listen port for inbound peers.
uint32_t path_sample_ms
How often each established peer's path is sampled for on_peer_path and path_stats() (see PathStats).
uint32_t transport_fallback_ms
How long the preferred transport dials alone before the other one is raced alongside it.
CongestionAlgorithm congestion_control
Congestion controller every datagram stream runs.
std::string protocol
Application protocol identity, bound into the Noise handshake prologue, so two nodes whose protocol d...
size_t udp_receive_window
Bytes one UDP connection's flow-control window may grow to.
std::string data_dir
Directory for persistent state.
bool enable_network_monitor
Watch the host for network configuration changes (interface up/down, IP add/remove,...
Security
Secure channel to use for peer connections.
std::chrono::milliseconds udp_idle_timeout
Silence from a peer after which its UDP connection is closed as lost (CloseReason::IdleTimeout); keep...
bool enable_tcp
Accept and dial over TCP.
bool udp_offload
Whether UDP uses the kernel's segmentation offload where the running system has it (Linux UDP_SEGMENT...
TransportKind preferred_transport
Which transport a dial tries first.
size_t max_peers
Maximum number of established peers.