ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
webrtc_peer_connection Struct Reference

WebRTC data channel for sending/receiving messages. More...

Data Fields

nat_upnp_context_t * mapping
 Owned UDP mapping.
socket_t port_reservation
 Held until ICE starts binding.
platform_thread_t mapping_thread
atomic_t mapping_stop
bool mapping_thread_started
int rtc_id
 libdatachannel peer connection ID
webrtc_config_t config
 Configuration with callbacks.
atomic_t state
 Current connection state.
atomic_t gathering_state
 Current ICE gathering state.
atomic_t gathering_start_time_ms
 When gathering started (platform_get_time_ms).
webrtc_data_channel_t * dc
 Primary data channel (if created/received).

Detailed Description

WebRTC data channel for sending/receiving messages.

WebRTC peer connection state

Represents a WebRTC peer-to-peer connection using libdatachannel. Manages ICE state, connection state, and data channels.

Definition at line 60 of file lib/network/webrtc/webrtc.c.

Field Documentation

◆ config

webrtc_config_t webrtc_peer_connection::config

Configuration with callbacks.

Definition at line 67 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_create_datachannel(), webrtc_create_peer_connection(), and webrtc_get_user_data().

◆ dc

webrtc_data_channel_t* webrtc_peer_connection::dc

Primary data channel (if created/received).

Definition at line 71 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_close_peer_connection(), webrtc_create_datachannel(), webrtc_create_peer_connection(), and webrtc_set_remote_description().

◆ gathering_start_time_ms

atomic_t webrtc_peer_connection::gathering_start_time_ms

When gathering started (platform_get_time_ms).

Definition at line 70 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_create_peer_connection(), and webrtc_is_gathering_timed_out().

◆ gathering_state

atomic_t webrtc_peer_connection::gathering_state

Current ICE gathering state.

Definition at line 69 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_create_peer_connection(), webrtc_get_gathering_state(), and webrtc_is_gathering_timed_out().

◆ mapping

nat_upnp_context_t* webrtc_peer_connection::mapping

Owned UDP mapping.

Definition at line 61 of file lib/network/webrtc/webrtc.c.

◆ mapping_stop

atomic_t webrtc_peer_connection::mapping_stop

Definition at line 64 of file lib/network/webrtc/webrtc.c.

◆ mapping_thread

platform_thread_t webrtc_peer_connection::mapping_thread

Definition at line 63 of file lib/network/webrtc/webrtc.c.

◆ mapping_thread_started

bool webrtc_peer_connection::mapping_thread_started

Definition at line 65 of file lib/network/webrtc/webrtc.c.

◆ port_reservation

socket_t webrtc_peer_connection::port_reservation

Held until ICE starts binding.

Definition at line 62 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_create_peer_connection().

◆ rtc_id

◆ state

atomic_t webrtc_peer_connection::state

Current connection state.

Definition at line 68 of file lib/network/webrtc/webrtc.c.

Referenced by webrtc_create_peer_connection(), and webrtc_get_state().


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