|
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 | peer_entry_t |
| Per-peer connection state. More... | |
| struct | webrtc_peer_manager |
| WebRTC peer manager structure. More... | |
Typedefs | |
| typedef struct webrtc_peer_manager | webrtc_peer_manager_t |
| WebRTC peer manager structure. | |
Functions | |
| asciichat_error_t | webrtc_peer_manager_create (const webrtc_peer_manager_config_t *config, const webrtc_signaling_callbacks_t *signaling_callbacks, webrtc_peer_manager_t **manager_out) |
| void | webrtc_peer_manager_destroy (webrtc_peer_manager_t *manager) |
| asciichat_error_t | webrtc_peer_manager_handle_sdp (webrtc_peer_manager_t *manager, const acip_webrtc_sdp_t *sdp) |
| asciichat_error_t | webrtc_peer_manager_handle_ice (webrtc_peer_manager_t *manager, const acip_webrtc_ice_t *ice) |
| asciichat_error_t | webrtc_peer_manager_connect (webrtc_peer_manager_t *manager, const uint8_t session_id[16], const uint8_t participant_id[16]) |
| int | webrtc_peer_manager_check_gathering_timeouts (webrtc_peer_manager_t *manager, uint32_t timeout_ms) |
| typedef struct webrtc_peer_manager webrtc_peer_manager_t |
WebRTC peer manager structure.
| int webrtc_peer_manager_check_gathering_timeouts | ( | webrtc_peer_manager_t * | manager, |
| uint32_t | timeout_ms | ||
| ) |
Definition at line 525 of file peer_manager.c.
References webrtc_peer_manager::config, peer_entry_t::participant_id, peer_entry_t::pc, webrtc_peer_manager::peers, webrtc_peer_manager::peers_mutex, webrtc_get_gathering_state(), and webrtc_is_gathering_timed_out().
Referenced by discovery_session_process().
| asciichat_error_t webrtc_peer_manager_connect | ( | webrtc_peer_manager_t * | manager, |
| const uint8_t | session_id[16], | ||
| const uint8_t | participant_id[16] | ||
| ) |
Definition at line 490 of file peer_manager.c.
References participant_id, webrtc_peer_manager::peers_mutex, webrtc_peer_manager::role, and session_id.
Referenced by discovery_session_process().
| asciichat_error_t webrtc_peer_manager_create | ( | const webrtc_peer_manager_config_t * | config, |
| const webrtc_signaling_callbacks_t * | signaling_callbacks, | ||
| webrtc_peer_manager_t ** | manager_out | ||
| ) |
Definition at line 323 of file peer_manager.c.
References webrtc_peer_manager::config, mutex_init(), webrtc_peer_manager::peers, webrtc_peer_manager::peers_mutex, webrtc_peer_manager::role, and webrtc_peer_manager::signaling.
Referenced by server_main().
| void webrtc_peer_manager_destroy | ( | webrtc_peer_manager_t * | manager | ) |
Definition at line 356 of file peer_manager.c.
References mutex_destroy(), webrtc_peer_manager::peers, and webrtc_peer_manager::peers_mutex.
Referenced by discovery_session_destroy(), discovery_session_process(), and server_main().
| asciichat_error_t webrtc_peer_manager_handle_ice | ( | webrtc_peer_manager_t * | manager, |
| const acip_webrtc_ice_t * | ice | ||
| ) |
Definition at line 441 of file peer_manager.c.
References peer_entry_t::pc, webrtc_peer_manager::peers_mutex, and webrtc_add_remote_candidate().
| asciichat_error_t webrtc_peer_manager_handle_sdp | ( | webrtc_peer_manager_t * | manager, |
| const acip_webrtc_sdp_t * | sdp | ||
| ) |
Definition at line 377 of file peer_manager.c.
References peer_entry_t::participant_id, participant_id, peer_entry_t::pc, webrtc_peer_manager::peers, webrtc_peer_manager::peers_mutex, webrtc_peer_manager::role, and webrtc_set_remote_description().