5#ifndef DITTOKIT_TRANSPORT_CONFIG_H
6#define DITTOKIT_TRANSPORT_CONFIG_H
37 return !operator==(other);
102 return !operator==(other);
130 return !operator==(other);
143 bool mdnsEnabled =
true;
144 bool multicastEnabled =
true;
146 bool operator==(
const LanConfig &other)
const {
147 return enabled == other.
enabled && mdnsEnabled == other.mdnsEnabled &&
148 multicastEnabled == other.multicastEnabled;
150 bool operator!=(
const LanConfig &other)
const {
return !operator==(other); }
163 bool operator==(
const AwdlConfig &other)
const {
166 bool operator!=(
const AwdlConfig &other)
const {
return !operator==(other); }
Part of the PeerToPeer config that relates to AWDL connections.
Definition: TransportConfig.hpp:156
bool enabled
Definition: TransportConfig.hpp:161
Part of the PeerToPeer config that relates to Bluetooth LE connections.
Definition: TransportConfig.hpp:119
bool enabled
Definition: TransportConfig.hpp:124
Part of the TransportConfig that relates to outgoing connections.
Definition: TransportConfig.hpp:195
std::set< std::string > tcp_servers
Definition: TransportConfig.hpp:200
std::set< std::string > websocket_urls
Definition: TransportConfig.hpp:205
Definition: TransportConfig.hpp:211
uint32_t sync_group
Definition: TransportConfig.hpp:230
Part of the Listen config that relates to incoming HTTP connections.
Definition: TransportConfig.hpp:44
std::string tls_key_path
Definition: TransportConfig.hpp:84
uint16_t port
Definition: TransportConfig.hpp:59
std::string interface_ip
Definition: TransportConfig.hpp:54
bool enabled
Definition: TransportConfig.hpp:49
std::string tls_certificate_path
Definition: TransportConfig.hpp:92
std::string static_content_path
Definition: TransportConfig.hpp:76
bool websocket_sync
Definition: TransportConfig.hpp:68
Part of the PeerToPeer config that relates to LAN connections.
Definition: TransportConfig.hpp:137
bool enabled
Definition: TransportConfig.hpp:142
Part of the TransportConfig that relates to incoming connections.
Definition: TransportConfig.hpp:109
Part of the TransportConfig that relates to peer-to-peer connections.
Definition: TransportConfig.hpp:173
LanConfig lan
Definition: TransportConfig.hpp:184
BluetoothLeConfig bluetooth_le
Definition: TransportConfig.hpp:179
AwdlConfig awdl
Definition: TransportConfig.hpp:189
Part of the Listen config that relates to incoming TCP connections.
Definition: TransportConfig.hpp:15
uint16_t port
Definition: TransportConfig.hpp:30
std::string interface_ip
Definition: TransportConfig.hpp:25
bool enabled
Definition: TransportConfig.hpp:20
A configuration object specifying which network transports Ditto should use to sync data.
Definition: TransportConfig.hpp:258
PeerToPeer peer_to_peer
Definition: TransportConfig.hpp:264
Connect connect
Definition: TransportConfig.hpp:269
Global global
Definition: TransportConfig.hpp:279
void enable_all_peer_to_peer()
Definition: TransportConfig.hpp:284
Listen listen
Definition: TransportConfig.hpp:274