|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Go to the source code of this file.
Data Structures | |
| struct | webrtc_peer_connection |
| WebRTC peer connection state. More... | |
| struct | webrtc_data_channel |
| WebRTC data channel for sending/receiving messages. More... | |
Functions | |
| asciichat_error_t | webrtc_init (void) |
| void | webrtc_destroy (void) |
| asciichat_error_t | webrtc_create_peer_connection (const webrtc_config_t *config, webrtc_peer_connection_t **pc_out) |
| void | webrtc_close_peer_connection (webrtc_peer_connection_t *pc) |
| webrtc_state_t | webrtc_get_state (webrtc_peer_connection_t *pc) |
| webrtc_gathering_state_t | webrtc_get_gathering_state (webrtc_peer_connection_t *pc) |
| bool | webrtc_is_gathering_timed_out (webrtc_peer_connection_t *pc, uint32_t timeout_ms) |
| void * | webrtc_get_user_data (webrtc_peer_connection_t *pc) |
| asciichat_error_t | webrtc_create_offer (webrtc_peer_connection_t *pc) |
| asciichat_error_t | webrtc_set_remote_description (webrtc_peer_connection_t *pc, const char *sdp, const char *type) |
| asciichat_error_t | webrtc_add_remote_candidate (webrtc_peer_connection_t *pc, const char *candidate, const char *mid) |
| asciichat_error_t | webrtc_create_datachannel (webrtc_peer_connection_t *pc, const char *label, webrtc_data_channel_t **dc_out) |
| asciichat_error_t | webrtc_datachannel_send (webrtc_data_channel_t *dc, const uint8_t *data, size_t size) |
| bool | webrtc_datachannel_is_open (webrtc_data_channel_t *dc) |
| void | webrtc_datachannel_set_open_state (webrtc_data_channel_t *dc, bool is_open) |
| const char * | webrtc_datachannel_get_label (webrtc_data_channel_t *dc) |
| void | webrtc_close_datachannel (webrtc_data_channel_t *dc) |
| asciichat_error_t | webrtc_datachannel_set_callbacks (webrtc_data_channel_t *dc, const webrtc_datachannel_callbacks_t *callbacks) |
| void | webrtc_datachannel_destroy (webrtc_data_channel_t *dc) |
| void | webrtc_peer_connection_close (webrtc_peer_connection_t *pc) |
| void | webrtc_peer_connection_destroy (webrtc_peer_connection_t *pc) |
| int | webrtc_get_rtc_id (webrtc_peer_connection_t *pc) |
| Get the internal libdatachannel peer connection ID. | |
| asciichat_error_t webrtc_add_remote_candidate | ( | webrtc_peer_connection_t * | pc, |
| const char * | candidate, | ||
| const char * | mid | ||
| ) |
Definition at line 587 of file lib/network/webrtc/webrtc.c.
Referenced by ice_add_remote_candidate(), and webrtc_peer_manager_handle_ice().
| void webrtc_close_datachannel | ( | webrtc_data_channel_t * | dc | ) |
Definition at line 709 of file lib/network/webrtc/webrtc.c.
Referenced by webrtc_close_peer_connection(), and webrtc_datachannel_destroy().
| void webrtc_close_peer_connection | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 480 of file lib/network/webrtc/webrtc.c.
References webrtc_close_datachannel().
| asciichat_error_t webrtc_create_datachannel | ( | webrtc_peer_connection_t * | pc, |
| const char * | label, | ||
| webrtc_data_channel_t ** | dc_out | ||
| ) |
Definition at line 608 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_create_offer | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 554 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_create_peer_connection | ( | const webrtc_config_t * | config, |
| webrtc_peer_connection_t ** | pc_out | ||
| ) |
Definition at line 395 of file lib/network/webrtc/webrtc.c.
| void webrtc_datachannel_destroy | ( | webrtc_data_channel_t * | dc | ) |
Definition at line 770 of file lib/network/webrtc/webrtc.c.
References webrtc_close_datachannel().
| const char * webrtc_datachannel_get_label | ( | webrtc_data_channel_t * | dc | ) |
Definition at line 694 of file lib/network/webrtc/webrtc.c.
| bool webrtc_datachannel_is_open | ( | webrtc_data_channel_t * | dc | ) |
Definition at line 678 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_datachannel_send | ( | webrtc_data_channel_t * | dc, |
| const uint8_t * | data, | ||
| size_t | size | ||
| ) |
Definition at line 644 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_datachannel_set_callbacks | ( | webrtc_data_channel_t * | dc, |
| const webrtc_datachannel_callbacks_t * | callbacks | ||
| ) |
Definition at line 728 of file lib/network/webrtc/webrtc.c.
Referenced by acip_webrtc_transport_create().
| void webrtc_datachannel_set_open_state | ( | webrtc_data_channel_t * | dc, |
| bool | is_open | ||
| ) |
Definition at line 686 of file lib/network/webrtc/webrtc.c.
Referenced by acip_webrtc_transport_create().
| void webrtc_destroy | ( | void | ) |
Definition at line 387 of file lib/network/webrtc/webrtc.c.
| webrtc_gathering_state_t webrtc_get_gathering_state | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 507 of file lib/network/webrtc/webrtc.c.
Referenced by webrtc_peer_manager_check_gathering_timeouts().
| int webrtc_get_rtc_id | ( | webrtc_peer_connection_t * | pc | ) |
Get the internal libdatachannel peer connection ID.
Helper function for C++ code that needs access to internal rtc_id without exposing the full structure definition.
| pc | Peer connection |
Definition at line 817 of file lib/network/webrtc/webrtc.c.
Referenced by ice_get_selected_pair_impl().
| webrtc_state_t webrtc_get_state | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 499 of file lib/network/webrtc/webrtc.c.
Referenced by ice_is_connected().
| void * webrtc_get_user_data | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 542 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_init | ( | void | ) |
Definition at line 383 of file lib/network/webrtc/webrtc.c.
Referenced by server_main().
| bool webrtc_is_gathering_timed_out | ( | webrtc_peer_connection_t * | pc, |
| uint32_t | timeout_ms | ||
| ) |
Definition at line 515 of file lib/network/webrtc/webrtc.c.
References platform_get_monotonic_time_us().
Referenced by webrtc_peer_manager_check_gathering_timeouts().
| void webrtc_peer_connection_close | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 785 of file lib/network/webrtc/webrtc.c.
| void webrtc_peer_connection_destroy | ( | webrtc_peer_connection_t * | pc | ) |
Definition at line 795 of file lib/network/webrtc/webrtc.c.
| asciichat_error_t webrtc_set_remote_description | ( | webrtc_peer_connection_t * | pc, |
| const char * | sdp, | ||
| const char * | type | ||
| ) |
Definition at line 569 of file lib/network/webrtc/webrtc.c.
Referenced by webrtc_peer_manager_handle_sdp().