1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
35 return !operator==(other);
100 return !operator==(other);
128 return !operator==(other);
141 bool mdns_enabled =
true;
142 bool multicast_enabled =
true;
144 bool operator==(
const LanConfig &other)
const {
145 return enabled == other.
enabled && mdns_enabled == other.mdns_enabled &&
146 multicast_enabled == other.multicast_enabled;
148 bool operator!=(
const LanConfig &other)
const {
return !operator==(other); }
164 bool operator==(
const AwdlConfig &other)
const {
167 bool operator!=(
const AwdlConfig &other)
const {
return !operator==(other); }
188 return !operator==(other);
242const uint32_t NO_PREFERRED_ROUTE_HINT = 0;
Part of the PeerToPeer config that relates to AWDL connections.
Definition TransportConfig.hpp:154
bool enabled
Definition TransportConfig.hpp:162
Part of the PeerToPeer config that relates to Bluetooth LE connections.
Definition TransportConfig.hpp:117
bool enabled
Definition TransportConfig.hpp:122
Part of the TransportConfig that relates to outgoing connections.
Definition TransportConfig.hpp:224
std::set< std::string > tcp_servers
Definition TransportConfig.hpp:229
std::chrono::duration< uint32_t, std::milli > retry_interval
Definition TransportConfig.hpp:239
std::set< std::string > websocket_urls
Definition TransportConfig.hpp:234
Definition TransportConfig.hpp:248
uint32_t sync_group
Definition TransportConfig.hpp:267
uint32_t routing_hint
Definition TransportConfig.hpp:286
Part of the Listen config that relates to incoming HTTP connections.
Definition TransportConfig.hpp:42
std::string tls_key_path
Definition TransportConfig.hpp:82
uint16_t port
Definition TransportConfig.hpp:57
std::string interface_ip
Definition TransportConfig.hpp:52
bool enabled
Definition TransportConfig.hpp:47
std::string tls_certificate_path
Definition TransportConfig.hpp:90
std::string static_content_path
Definition TransportConfig.hpp:74
bool websocket_sync
Definition TransportConfig.hpp:66
Part of the PeerToPeer config that relates to LAN connections.
Definition TransportConfig.hpp:135
bool enabled
Definition TransportConfig.hpp:140
Part of the TransportConfig that relates to incoming connections.
Definition TransportConfig.hpp:107
Part of the TransportConfig that relates to peer-to-peer connections.
Definition TransportConfig.hpp:196
LanConfig lan
Definition TransportConfig.hpp:207
BluetoothLeConfig bluetooth_le
Definition TransportConfig.hpp:202
AwdlConfig awdl
Definition TransportConfig.hpp:212
WiFiAwareConfig wifi_aware
Definition TransportConfig.hpp:218
Part of the Listen config that relates to incoming TCP connections.
Definition TransportConfig.hpp:13
uint16_t port
Definition TransportConfig.hpp:28
std::string interface_ip
Definition TransportConfig.hpp:23
bool enabled
Definition TransportConfig.hpp:18
A configuration object specifying which network transports Ditto should use to sync data.
Definition TransportConfig.hpp:317
PeerToPeer peer_to_peer
Definition TransportConfig.hpp:323
Connect connect
Definition TransportConfig.hpp:328
Global global
Definition TransportConfig.hpp:338
void enable_all_peer_to_peer()
Definition TransportConfig.hpp:343
Listen listen
Definition TransportConfig.hpp:333
Part of the PeerToPeer transport config that applies to WiFi Aware connections.
Definition TransportConfig.hpp:174
bool enabled
Definition TransportConfig.hpp:182