1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
37 return !operator==(other);
104 return !operator==(other);
120 bool operator==(
const Listen &other)
const {
121 return tcp == other.tcp && http == other.http;
123 bool operator!=(
const Listen &other)
const {
return !operator==(other); }
125 NLOHMANN_DEFINE_TYPE_INTRUSIVE(
Listen, tcp, http)
143 return !operator==(other);
146 NLOHMANN_DEFINE_TYPE_INTRUSIVE(BluetoothLeConfig,
enabled)
158 bool mdns_enabled =
true;
159 bool multicast_enabled =
true;
161 bool operator==(
const LanConfig &other)
const {
162 return enabled == other.
enabled && mdns_enabled == other.mdns_enabled &&
163 multicast_enabled == other.multicast_enabled;
165 bool operator!=(
const LanConfig &other)
const {
return !operator==(other); }
167 NLOHMANN_DEFINE_TYPE_INTRUSIVE(LanConfig,
enabled, mdns_enabled,
184 bool operator==(
const AwdlConfig &other)
const {
187 bool operator!=(
const AwdlConfig &other)
const {
return !operator==(other); }
189 NLOHMANN_DEFINE_TYPE_INTRUSIVE(AwdlConfig,
enabled)
210 return !operator==(other);
213 NLOHMANN_DEFINE_TYPE_INTRUSIVE(WiFiAwareConfig,
enabled)
244 bool operator==(
const PeerToPeer &other)
const {
248 bool operator!=(
const PeerToPeer &other)
const {
return !operator==(other); }
274 bool operator==(
const Connect &other)
const {
279 bool operator!=(
const Connect &other)
const {
return !operator==(other); }
285const uint32_t NO_PREFERRED_ROUTE_HINT = 0;
331 bool operator==(
const Global &other)
const {
334 bool operator!=(
const Global &other)
const {
return !operator==(other); }
404 bool operator!=(
const TransportConfig &other)
const {
405 return !operator==(other);
Part of the PeerToPeer config that relates to AWDL connections.
Definition TransportConfig.hpp:174
bool enabled
Definition TransportConfig.hpp:182
Part of the PeerToPeer config that relates to Bluetooth LE connections.
Definition TransportConfig.hpp:132
bool enabled
Definition TransportConfig.hpp:137
Part of the TransportConfig that relates to outgoing connections.
Definition TransportConfig.hpp:257
std::set< std::string > tcp_servers
Definition TransportConfig.hpp:262
std::chrono::duration< uint32_t, std::milli > retry_interval
Definition TransportConfig.hpp:272
std::set< std::string > websocket_urls
Definition TransportConfig.hpp:267
Definition TransportConfig.hpp:291
uint32_t sync_group
Definition TransportConfig.hpp:310
uint32_t routing_hint
Definition TransportConfig.hpp:329
Part of the Listen config that relates to incoming HTTP connections.
Definition TransportConfig.hpp:46
std::string tls_key_path
Definition TransportConfig.hpp:86
uint16_t port
Definition TransportConfig.hpp:61
std::string interface_ip
Definition TransportConfig.hpp:56
bool enabled
Definition TransportConfig.hpp:51
std::string tls_certificate_path
Definition TransportConfig.hpp:94
std::string static_content_path
Definition TransportConfig.hpp:78
bool websocket_sync
Definition TransportConfig.hpp:70
Part of the PeerToPeer config that relates to LAN connections.
Definition TransportConfig.hpp:152
bool enabled
Definition TransportConfig.hpp:157
Part of the TransportConfig that relates to incoming connections.
Definition TransportConfig.hpp:115
Part of the TransportConfig that relates to peer-to-peer connections.
Definition TransportConfig.hpp:220
LanConfig lan
Definition TransportConfig.hpp:231
BluetoothLeConfig bluetooth_le
Definition TransportConfig.hpp:226
AwdlConfig awdl
Definition TransportConfig.hpp:236
WiFiAwareConfig wifi_aware
Definition TransportConfig.hpp:242
Part of the Listen config that relates to incoming TCP connections.
Definition TransportConfig.hpp:15
uint16_t port
Definition TransportConfig.hpp:30
std::string interface_ip
Definition TransportConfig.hpp:25
bool enabled
Definition TransportConfig.hpp:20
A configuration object specifying which network transports Ditto should use to sync data.
Definition TransportConfig.hpp:367
PeerToPeer peer_to_peer
Definition TransportConfig.hpp:373
Connect connect
Definition TransportConfig.hpp:378
Global global
Definition TransportConfig.hpp:388
void enable_all_peer_to_peer()
Definition TransportConfig.hpp:393
Listen listen
Definition TransportConfig.hpp:383
Part of the PeerToPeer transport config that applies to WiFi Aware connections.
Definition TransportConfig.hpp:196
bool enabled
Definition TransportConfig.hpp:204
basic_json<> json
default JSON class
Definition json.hpp:2933