1#ifndef _DITTO_TRANSPORT_CONFIG_
2#define _DITTO_TRANSPORT_CONFIG_
34 return !operator==(other);
99 return !operator==(other);
127 return !operator==(other);
141 bool mdnsEnabled =
true;
142 bool multicastEnabled =
true;
144 bool operator==(
const LanConfig &other)
const {
145 return enabled == other.
enabled && mdnsEnabled == other.mdnsEnabled &&
146 multicastEnabled == other.multicastEnabled;
148 bool operator!=(
const LanConfig &other)
const {
return !operator==(other); }
161 bool operator==(
const AwdlConfig &other)
const {
164 bool operator!=(
const AwdlConfig &other)
const {
return !operator==(other); }
Part of the PeerToPeer config that relates to AWDL connections.
Definition: TransportConfig.hpp:154
bool enabled
Definition: TransportConfig.hpp:159
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:193
std::set< std::string > tcp_servers
Definition: TransportConfig.hpp:198
std::set< std::string > websocket_urls
Definition: TransportConfig.hpp:203
Definition: TransportConfig.hpp:209
uint32_t sync_group
Definition: TransportConfig.hpp:228
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:171
LanConfig lan
Definition: TransportConfig.hpp:182
BluetoothLeConfig bluetooth_le
Definition: TransportConfig.hpp:177
AwdlConfig awdl
Definition: TransportConfig.hpp:187
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:256
PeerToPeer peer_to_peer
Definition: TransportConfig.hpp:262
Connect connect
Definition: TransportConfig.hpp:267
Global global
Definition: TransportConfig.hpp:277
void enable_all_peer_to_peer()
Definition: TransportConfig.hpp:282
Listen listen
Definition: TransportConfig.hpp:272