1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
34 return !operator==(other);
99 return !operator==(other);
127 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);
237const 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:116
bool enabled
Definition TransportConfig.hpp:121
Part of the TransportConfig that relates to outgoing connections.
Definition TransportConfig.hpp:224
std::set< std::string > tcp_servers
Definition TransportConfig.hpp:229
std::set< std::string > websocket_urls
Definition TransportConfig.hpp:234
Definition TransportConfig.hpp:242
uint32_t sync_group
Definition TransportConfig.hpp:261
uint32_t routing_hint
Definition TransportConfig.hpp:280
Part of the Listen config that relates to incoming HTTP connections.
Definition TransportConfig.hpp:41
std::string tls_key_path
Definition TransportConfig.hpp:81
uint16_t port
Definition TransportConfig.hpp:56
std::string interface_ip
Definition TransportConfig.hpp:51
bool enabled
Definition TransportConfig.hpp:46
std::string tls_certificate_path
Definition TransportConfig.hpp:89
std::string static_content_path
Definition TransportConfig.hpp:73
bool websocket_sync
Definition TransportConfig.hpp:65
Part of the PeerToPeer config that relates to LAN connections.
Definition TransportConfig.hpp:134
bool enabled
Definition TransportConfig.hpp:139
Part of the TransportConfig that relates to incoming connections.
Definition TransportConfig.hpp:106
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:12
uint16_t port
Definition TransportConfig.hpp:27
std::string interface_ip
Definition TransportConfig.hpp:22
bool enabled
Definition TransportConfig.hpp:17
A configuration object specifying which network transports Ditto should use to sync data.
Definition TransportConfig.hpp:308
PeerToPeer peer_to_peer
Definition TransportConfig.hpp:314
Connect connect
Definition TransportConfig.hpp:319
Global global
Definition TransportConfig.hpp:329
void enable_all_peer_to_peer()
Definition TransportConfig.hpp:334
Listen listen
Definition TransportConfig.hpp:324
Part of the PeerToPeer transport config that applies to WiFi Aware connections.
Definition TransportConfig.hpp:174
bool enabled
Definition TransportConfig.hpp:182