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

webrtc peer manager is intentionally a small, concrete record. Fields such as role, Config Module, signaling, peers give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. More...

Data Fields

uint8_t participant_id [16]
 Remote participant UUID (hash key).
uint8_t session_id [16]
 Session UUID.
webrtc_peer_connection_t * pc
 WebRTC peer connection.
webrtc_data_channel_t * dc
 WebRTC data channel.
acip_security_t * security
 Owned until transferred to the transport.
atomic_t security_ready
atomic_t handshake_started_ns
atomic_ptr_t pending_transport
 Owned until authenticated and handed to the application.
bool is_connected
 DataChannel opened.
bool remote_sdp_attempted
 A remote description was applied or attempted.
bool remote_description_set
 libdatachannel has installed the remote SDP and ICE transport
char remote_ice_ufrag [257]
 installed on this peer
bool gathering_timeout_reported
 ICE gathering timed out while trickle candidates may still connect.
struct webrtc_peer_manager * manager
 Back-reference to manager.
UT_hash_handle hh
 uthash handle

Detailed Description

webrtc peer manager is intentionally a small, concrete record. Fields such as role, Config Module, signaling, peers give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed.

Hash-table record for one negotiated WebRTC participant

The record is keyed by participant_id and owns the peer's libdatachannel objects, security handoff, pending transport, and signaling state. The manager protects records with peers_mutex; callbacks receive the record as their user pointer and it is freed only after the peer is removed.

Definition at line 45 of file peer_manager.c.

Field Documentation

◆ dc

webrtc_data_channel_t* peer_entry_t::dc

WebRTC data channel.

Definition at line 49 of file peer_manager.c.

◆ gathering_timeout_reported

bool peer_entry_t::gathering_timeout_reported

ICE gathering timed out while trickle candidates may still connect.

Definition at line 59 of file peer_manager.c.

Referenced by webrtc_peer_manager_check_gathering_timeouts().

◆ handshake_started_ns

atomic_t peer_entry_t::handshake_started_ns

Definition at line 52 of file peer_manager.c.

Referenced by webrtc_peer_manager_check_gathering_timeouts().

◆ hh

UT_hash_handle peer_entry_t::hh

uthash handle

Definition at line 61 of file peer_manager.c.

◆ is_connected

bool peer_entry_t::is_connected

DataChannel opened.

Definition at line 54 of file peer_manager.c.

Referenced by webrtc_peer_manager_dispatch_ready().

◆ manager

struct webrtc_peer_manager* peer_entry_t::manager

Back-reference to manager.

Definition at line 60 of file peer_manager.c.

◆ participant_id

uint8_t peer_entry_t::participant_id[16]

Remote participant UUID (hash key).

Definition at line 46 of file peer_manager.c.

Referenced by webrtc_peer_manager_check_gathering_timeouts(), webrtc_peer_manager_dispatch_ready(), and webrtc_peer_manager_handle_sdp().

◆ pc

◆ pending_transport

atomic_ptr_t peer_entry_t::pending_transport

Owned until authenticated and handed to the application.

Definition at line 53 of file peer_manager.c.

Referenced by webrtc_peer_manager_dispatch_ready().

◆ remote_description_set

bool peer_entry_t::remote_description_set

libdatachannel has installed the remote SDP and ICE transport

Definition at line 56 of file peer_manager.c.

Referenced by webrtc_peer_manager_handle_ice(), and webrtc_peer_manager_handle_sdp().

◆ remote_ice_ufrag

char peer_entry_t::remote_ice_ufrag[257]

installed on this peer

ICE generation currently

Definition at line 57 of file peer_manager.c.

Referenced by webrtc_peer_manager_handle_sdp().

◆ remote_sdp_attempted

bool peer_entry_t::remote_sdp_attempted

A remote description was applied or attempted.

Definition at line 55 of file peer_manager.c.

Referenced by webrtc_peer_manager_handle_sdp().

◆ security

acip_security_t* peer_entry_t::security

Owned until transferred to the transport.

Definition at line 50 of file peer_manager.c.

◆ security_ready

atomic_t peer_entry_t::security_ready

◆ session_id

uint8_t peer_entry_t::session_id[16]

Session UUID.

Definition at line 47 of file peer_manager.c.


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