A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::net::WebRtcConfiguration Struct Reference

ICE, fragmentation, and binding settings for a WebRTC connection. More...

#include <cpp/a11/net/webrtc_wire_stream.h>

Public Member Functions

absl::Status Validate () const
 

Public Attributes

std::optional< size_tmax_message_size
 Advertised channel ceiling.
 
size_t channel_split_size
 A11 packet size below SCTP limits.
 
bool enable_ice_udp_mux
 Reuse one UDP socket for ICE candidates.
 
std::vector< std::string > stun_servers
 STUN URLs used for NAT discovery.
 
std::vector< TurnServerturn_servers
 Fallback relay servers.
 
std::optional< std::pair< std::uint16_t, std::uint16_t > > preferred_port_range
 Optional inclusive local UDP port range for ICE.
 
std::optional< std::string > bind_address
 Optional local candidate address.
 
size_t desired_channels = 8
 Data channels a client opens and replenishes.
 
size_t max_channels = 8
 Data channels a server admits per peer.
 

Detailed Description

ICE, fragmentation, and binding settings for a WebRTC connection.

Lists the STUN and TURN servers used for ICE, the message size at which A11 fragments large logical messages, and optional local port/address binding.

Member Function Documentation

◆ Validate()

absl::Status a11::net::WebRtcConfiguration::Validate ( ) const
Returns
OK if the configuration is internally consistent.

Member Data Documentation

◆ bind_address

std::optional<std::string> a11::net::WebRtcConfiguration::bind_address

Optional local candidate address.

◆ channel_split_size

size_t a11::net::WebRtcConfiguration::channel_split_size
Initial value:
=
48 * 1024

A11 packet size below SCTP limits.

◆ desired_channels

size_t a11::net::WebRtcConfiguration::desired_channels = 8

Data channels a client opens and replenishes.

◆ enable_ice_udp_mux

bool a11::net::WebRtcConfiguration::enable_ice_udp_mux
Initial value:
=
false

Reuse one UDP socket for ICE candidates.

◆ max_channels

size_t a11::net::WebRtcConfiguration::max_channels = 8

Data channels a server admits per peer.

◆ max_message_size

std::optional<size_t> a11::net::WebRtcConfiguration::max_message_size
Initial value:
=
64 * 1024

Advertised channel ceiling.

◆ preferred_port_range

std::optional<std::pair<std::uint16_t, std::uint16_t> > a11::net::WebRtcConfiguration::preferred_port_range

Optional inclusive local UDP port range for ICE.

◆ stun_servers

std::vector<std::string> a11::net::WebRtcConfiguration::stun_servers

STUN URLs used for NAT discovery.

◆ turn_servers

std::vector<TurnServer> a11::net::WebRtcConfiguration::turn_servers

Fallback relay servers.


The documentation for this struct was generated from the following files: