1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
35 return !operator==(other);
100 return !operator==(other);
128 return !operator==(other);
142 bool mdns_enabled =
true;
143 bool multicast_enabled =
true;
145 bool operator==(
const LanConfig &other)
const {
146 return enabled == other.
enabled && mdns_enabled == other.mdns_enabled &&
147 multicast_enabled == other.multicast_enabled;
149 bool operator!=(
const LanConfig &other)
const {
return !operator==(other); }
165 bool operator==(
const AwdlConfig &other)
const {
168 bool operator!=(
const AwdlConfig &other)
const {
return !operator==(other); }
189 return !operator==(other);
243const uint32_t NO_PREFERRED_ROUTE_HINT = 0;
Part of the PeerToPeer config that relates to AWDL connections.
Definition: TransportConfig.hpp:155
bool enabled
Definition: TransportConfig.hpp:163
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:225
std::set< std::string > tcp_servers
Definition: TransportConfig.hpp:230
std::chrono::duration< uint32_t, std::milli > retry_interval
Definition: TransportConfig.hpp:240
std::set< std::string > websocket_urls
Definition: TransportConfig.hpp:235
Definition: TransportConfig.hpp:249
uint32_t sync_group
Definition: TransportConfig.hpp:268
uint32_t routing_hint
Definition: TransportConfig.hpp:287
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:197
LanConfig lan
Definition: TransportConfig.hpp:208
BluetoothLeConfig bluetooth_le
Definition: TransportConfig.hpp:203
AwdlConfig awdl
Definition: TransportConfig.hpp:213
WiFiAwareConfig wifi_aware
Definition: TransportConfig.hpp:219
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:318
PeerToPeer peer_to_peer
Definition: TransportConfig.hpp:324
Connect connect
Definition: TransportConfig.hpp:329
Global global
Definition: TransportConfig.hpp:339
void enable_all_peer_to_peer()
Definition: TransportConfig.hpp:344
Listen listen
Definition: TransportConfig.hpp:334
Part of the PeerToPeer transport config that applies to WiFi Aware connections.
Definition: TransportConfig.hpp:175
bool enabled
Definition: TransportConfig.hpp:183