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

Address and credentials for a TURN relay used during ICE. More...

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

Static Public Member Functions

static absl::StatusOr< TurnServerFromString (std::string_view value)
 Parses a TURN server from a URL-like string.
 

Public Attributes

std::string hostname
 TURN host name or address.
 
std::uint16_t port = 3478
 TURN service port.
 
std::string username
 Relay credential username.
 
std::string password
 Relay credential password.
 
TurnRelayType relay_type = TurnRelayType::kUdp
 Transport to the relay.
 

Friends

bool operator== (const TurnServer &, const TurnServer &)=default
 

Detailed Description

Address and credentials for a TURN relay used during ICE.

TURN servers relay media when a direct peer-to-peer path cannot be established through NATs or firewalls.

Member Function Documentation

◆ FromString()

absl::StatusOr< TurnServer > a11::net::TurnServer::FromString ( std::string_view  value)
static

Parses a TURN server from a URL-like string.

Returns
The parsed server, or an error status.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const TurnServer ,
const TurnServer  
)
friend

Member Data Documentation

◆ hostname

std::string a11::net::TurnServer::hostname

TURN host name or address.

◆ password

std::string a11::net::TurnServer::password

Relay credential password.

◆ port

std::uint16_t a11::net::TurnServer::port = 3478

TURN service port.

◆ relay_type

TurnRelayType a11::net::TurnServer::relay_type = TurnRelayType::kUdp

Transport to the relay.

◆ username

std::string a11::net::TurnServer::username

Relay credential username.


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