|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
ICE candidate gathering and exchange. More...
Go to the source code of this file.
Macros | |
| #define | PCRE2_CODE_UNIT_WIDTH 8 |
Functions | |
| const char * | ice_candidate_type_name (ice_candidate_type_t type) |
| const char * | ice_protocol_name (ice_protocol_t protocol) |
| uint32_t | ice_calculate_priority (ice_candidate_type_t type, uint16_t local_preference, uint8_t component_id) |
| uint32_t | ice_calculate_priority_for_candidate (const ice_candidate_t *candidate) |
| asciichat_error_t | ice_parse_candidate (const char *line, ice_candidate_t *candidate) |
| asciichat_error_t | ice_format_candidate (const ice_candidate_t *candidate, char *line, size_t line_size) |
| asciichat_error_t | ice_gather_candidates (const ice_config_t *config) |
| asciichat_error_t | ice_add_remote_candidate (webrtc_peer_connection_t *pc, const ice_candidate_t *candidate, const char *mid) |
| bool | ice_is_connected (webrtc_peer_connection_t *pc) |
| asciichat_error_t | ice_get_selected_pair_impl (webrtc_peer_connection_t *pc, ice_candidate_t *local_candidate, ice_candidate_t *remote_candidate) |
| Get selected ICE candidate pair (C++ implementation) | |
| asciichat_error_t | ice_get_selected_pair (webrtc_peer_connection_t *pc, ice_candidate_t *local_candidate, ice_candidate_t *remote_candidate) |
ICE candidate gathering and exchange.
Implements ICE candidate collection from STUN/TURN servers and relay via ACDS signaling.
Definition in file ice.c.
| asciichat_error_t ice_add_remote_candidate | ( | webrtc_peer_connection_t * | pc, |
| const ice_candidate_t * | candidate, | ||
| const char * | mid | ||
| ) |
Definition at line 423 of file ice.c.
References ice_candidate_type_name(), ice_format_candidate(), and webrtc_add_remote_candidate().
| uint32_t ice_calculate_priority | ( | ice_candidate_type_t | type, |
| uint16_t | local_preference, | ||
| uint8_t | component_id | ||
| ) |
Definition at line 102 of file ice.c.
Referenced by ice_calculate_priority_for_candidate().
| uint32_t ice_calculate_priority_for_candidate | ( | const ice_candidate_t * | candidate | ) |
Definition at line 136 of file ice.c.
References ice_calculate_priority().
| const char * ice_candidate_type_name | ( | ice_candidate_type_t | type | ) |
Definition at line 27 of file ice.c.
Referenced by ice_add_remote_candidate(), and ice_format_candidate().
| asciichat_error_t ice_format_candidate | ( | const ice_candidate_t * | candidate, |
| char * | line, | ||
| size_t | line_size | ||
| ) |
Definition at line 323 of file ice.c.
References ice_candidate_type_name(), ice_protocol_name(), and safe_snprintf().
Referenced by ice_add_remote_candidate().
| asciichat_error_t ice_gather_candidates | ( | const ice_config_t * | config | ) |
Definition at line 389 of file ice.c.
| asciichat_error_t ice_get_selected_pair | ( | webrtc_peer_connection_t * | pc, |
| ice_candidate_t * | local_candidate, | ||
| ice_candidate_t * | remote_candidate | ||
| ) |
Definition at line 462 of file ice.c.
References ice_get_selected_pair_impl().
| asciichat_error_t ice_get_selected_pair_impl | ( | webrtc_peer_connection_t * | pc, |
| ice_candidate_t * | local_candidate, | ||
| ice_candidate_t * | remote_candidate | ||
| ) |
Get selected ICE candidate pair (C++ implementation)
This function uses libdatachannel's C++ API to retrieve the selected candidate pair, which is not available in the C API.
Definition at line 58 of file ice_selected_pair.cpp.
References webrtc_get_rtc_id().
Referenced by ice_get_selected_pair().
| bool ice_is_connected | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 448 of file ice.c.
References webrtc_get_state().
| asciichat_error_t ice_parse_candidate | ( | const char * | line, |
| ice_candidate_t * | candidate | ||
| ) |
| const char * ice_protocol_name | ( | ice_protocol_t | protocol | ) |
Definition at line 42 of file ice.c.
Referenced by ice_format_candidate().