1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
38 return !operator==(
other);
105 return !operator==(
other);
122 return tcp ==
other.tcp && http ==
other.http;
126 NLOHMANN_DEFINE_TYPE_INTRUSIVE(
Listen, tcp, http)
144 return !operator==(
other);
147 NLOHMANN_DEFINE_TYPE_INTRUSIVE(BluetoothLeConfig,
enabled)
152#pragma clang diagnostic push
153#pragma clang diagnostic ignored "-Wdeprecated-declarations"
163 bool mdns_enabled =
true;
172#pragma clang diagnostic pop
192 NLOHMANN_DEFINE_TYPE_INTRUSIVE(AwdlConfig,
enabled)
213 return !operator==(
other);
216 NLOHMANN_DEFINE_TYPE_INTRUSIVE(WiFiAwareConfig,
enabled)
282 bool operator!=(
const Connect &other)
const {
return !operator==(other); }
288const uint32_t NO_PREFERRED_ROUTE_HINT = 0;
407 bool operator!=(
const TransportConfig &other)
const {
408 return !operator==(other);
Part of the PeerToPeer config that relates to AWDL connections.
Definition TransportConfig.hpp:177
bool enabled
Definition TransportConfig.hpp:185
Part of the PeerToPeer config that relates to Bluetooth LE connections.
Definition TransportConfig.hpp:133
bool enabled
Definition TransportConfig.hpp:138
Part of the TransportConfig that relates to outgoing connections.
Definition TransportConfig.hpp:260
std::set< std::string > tcp_servers
Definition TransportConfig.hpp:265
std::chrono::duration< uint32_t, std::milli > retry_interval
Definition TransportConfig.hpp:275
std::set< std::string > websocket_urls
Definition TransportConfig.hpp:270
Definition TransportConfig.hpp:294
uint32_t sync_group
Definition TransportConfig.hpp:313
uint32_t routing_hint
Definition TransportConfig.hpp:332
Part of the Listen config that relates to incoming HTTP connections.
Definition TransportConfig.hpp:47
std::string tls_key_path
Definition TransportConfig.hpp:87
uint16_t port
Definition TransportConfig.hpp:62
std::string interface_ip
Definition TransportConfig.hpp:57
bool enabled
Definition TransportConfig.hpp:52
std::string tls_certificate_path
Definition TransportConfig.hpp:95
std::string static_content_path
Definition TransportConfig.hpp:79
bool websocket_sync
Definition TransportConfig.hpp:71
Part of the PeerToPeer config that relates to LAN connections.
Definition TransportConfig.hpp:157
bool enabled
Definition TransportConfig.hpp:162
Part of the TransportConfig that relates to incoming connections.
Definition TransportConfig.hpp:116
Part of the TransportConfig that relates to peer-to-peer connections.
Definition TransportConfig.hpp:223
LanConfig lan
Definition TransportConfig.hpp:234
BluetoothLeConfig bluetooth_le
Definition TransportConfig.hpp:229
AwdlConfig awdl
Definition TransportConfig.hpp:239
WiFiAwareConfig wifi_aware
Definition TransportConfig.hpp:245
Part of the Listen config that relates to incoming TCP connections.
Definition TransportConfig.hpp:16
uint16_t port
Definition TransportConfig.hpp:31
std::string interface_ip
Definition TransportConfig.hpp:26
bool enabled
Definition TransportConfig.hpp:21
A configuration object specifying which network transports Ditto should use to sync data.
Definition TransportConfig.hpp:370
PeerToPeer peer_to_peer
Definition TransportConfig.hpp:376
Connect connect
Definition TransportConfig.hpp:381
Global global
Definition TransportConfig.hpp:391
void enable_all_peer_to_peer()
Definition TransportConfig.hpp:396
Listen listen
Definition TransportConfig.hpp:386
Part of the PeerToPeer transport config that applies to WiFi Aware connections.
Definition TransportConfig.hpp:199
bool enabled
Definition TransportConfig.hpp:207
basic_json<> json
default JSON class
Definition json.hpp:2933