20#ifndef ORES_COMMS_NET_CLIENT_OPTIONS_HPP
21#define ORES_COMMS_NET_CLIENT_OPTIONS_HPP
27#include "ores.comms/messaging/handshake_protocol.hpp"
73std::ostream& operator<<(std::ostream& s,
const retry_options& v);
82 std::string
host =
"localhost";
87 std::uint16_t
port = 55555;
130std::ostream& operator<<(std::ostream& s,
const client_options& v);
Contains the networking elements of the comms library.
Definition client.hpp:42
Configuration for client retry and reconnection behavior.
Definition client_options.hpp:34
double jitter_factor
Jitter factor for randomizing retry delays.
Definition client_options.hpp:62
bool auto_reconnect
Whether to automatically reconnect after disconnect.
Definition client_options.hpp:70
std::chrono::milliseconds max_delay
Maximum delay between retry attempts.
Definition client_options.hpp:54
std::chrono::milliseconds base_delay
Base delay for exponential backoff.
Definition client_options.hpp:47
std::uint32_t max_attempts
Maximum number of connection attempts before giving up.
Definition client_options.hpp:40
Configuration for the client.
Definition client_options.hpp:78
bool verify_certificate
Whether to verify the server's certificate.
Definition client_options.hpp:97
std::string client_identifier
Client identifier to send when performing the handshake.
Definition client_options.hpp:92
std::string host
Host to connect to.
Definition client_options.hpp:82
std::uint16_t port
Port to connect to.
Definition client_options.hpp:87
retry_options retry
Retry and reconnection options.
Definition client_options.hpp:118
bool heartbeat_enabled
Whether to enable heartbeat (ping/pong) for connection monitoring.
Definition client_options.hpp:105
std::uint8_t supported_compression
Bitmask of compression types supported by this client.
Definition client_options.hpp:127
std::uint32_t heartbeat_interval_seconds
Interval between heartbeat pings in seconds.
Definition client_options.hpp:113