ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
webrtc_config_t Struct Reference

WebRTC configuration. More...

#include <include/ascii-chat/network/webrtc/webrtc.h>

Data Fields

const char * bind_address
 Optional local interface address for ICE sockets.
 
stun_server_t * stun_servers
 Array of STUN servers.
 
size_t stun_count
 Number of STUN servers.
 
turn_server_t * turn_servers
 Array of TURN servers.
 
size_t turn_count
 Number of TURN servers.
 
bool relay_only
 Restrict ICE to TURN relay candidates.
 
const char * turn_username
 Optional credential override, including full ACDS usernames.
 
const char * turn_credential
 Optional credential override.
 
webrtc_state_callback_t on_state_change
 
webrtc_gathering_state_callback_t on_gathering_state_change
 
webrtc_local_description_callback_t on_local_description
 
webrtc_local_candidate_callback_t on_local_candidate
 
webrtc_datachannel_open_callback_t on_datachannel_open
 
webrtc_datachannel_message_callback_t on_datachannel_message
 
webrtc_datachannel_error_callback_t on_datachannel_error
 
void * user_data
 Passed to all callbacks.
 

Detailed Description

WebRTC configuration.

Definition at line 128 of file include/ascii-chat/network/webrtc/webrtc.h.

Field Documentation

◆ bind_address

const char* webrtc_config_t::bind_address

Optional local interface address for ICE sockets.

Definition at line 129 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ on_datachannel_error

webrtc_datachannel_error_callback_t webrtc_config_t::on_datachannel_error

Definition at line 145 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_datachannel_message

webrtc_datachannel_message_callback_t webrtc_config_t::on_datachannel_message

Definition at line 144 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_datachannel_open

webrtc_datachannel_open_callback_t webrtc_config_t::on_datachannel_open

Definition at line 143 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_gathering_state_change

webrtc_gathering_state_callback_t webrtc_config_t::on_gathering_state_change

Definition at line 140 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_local_candidate

webrtc_local_candidate_callback_t webrtc_config_t::on_local_candidate

Definition at line 142 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_local_description

webrtc_local_description_callback_t webrtc_config_t::on_local_description

Definition at line 141 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ on_state_change

webrtc_state_callback_t webrtc_config_t::on_state_change

Definition at line 139 of file include/ascii-chat/network/webrtc/webrtc.h.

◆ relay_only

bool webrtc_config_t::relay_only

Restrict ICE to TURN relay candidates.

Definition at line 134 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ stun_count

size_t webrtc_config_t::stun_count

Number of STUN servers.

Definition at line 131 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ stun_servers

stun_server_t* webrtc_config_t::stun_servers

Array of STUN servers.

Definition at line 130 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ turn_count

size_t webrtc_config_t::turn_count

Number of TURN servers.

Definition at line 133 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ turn_credential

const char* webrtc_config_t::turn_credential

Optional credential override.

Definition at line 136 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ turn_servers

turn_server_t* webrtc_config_t::turn_servers

Array of TURN servers.

Definition at line 132 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ turn_username

const char* webrtc_config_t::turn_username

Optional credential override, including full ACDS usernames.

Definition at line 135 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_create_peer_connection().

◆ user_data

void* webrtc_config_t::user_data

Passed to all callbacks.

Definition at line 147 of file include/ascii-chat/network/webrtc/webrtc.h.

Referenced by webrtc_get_user_data().


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