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_transport_data_t Struct Reference

WebRTC transport implementation data. More...

Data Fields

webrtc_peer_connection_t * peer_conn
 Borrowed peer connection.
webrtc_data_channel_t * data_channel
 Borrowed data channel.
acip_security_t * security
 Owned per-peer security state.
void(* on_ready )(acip_transport_t *, void *)
void * ready_user_data
acip_transport_t * transport
 Borrowed enclosing transport.
ringbuffer_t * recv_queue
 Receive message queue.
uint8_t * partial
 Incomplete ACIP packet bytes.
size_t partial_len
size_t partial_capacity
uint64_t partial_since_ns
mutex_t queue_mutex
 Protect queue operations.
cond_t queue_cond
 Signal when messages arrive.
bool is_connected
 Connection state.
bool data_channel_closed
 DataChannel close is terminal for this transport.
bool close_requested
 Whether this transport has closed its borrowed peer handles.
uint64_t disconnected_since_ns
 Start of the current transient ICE disconnect.
mutex_t state_mutex
 Protect state changes.
mutex_t send_mutex
 Keep chunks from concurrent packets together.

Detailed Description

WebRTC transport implementation data.

Definition at line 80 of file webrtc/transport.c.

Field Documentation

◆ close_requested

bool webrtc_transport_data_t::close_requested

Whether this transport has closed its borrowed peer handles.

Definition at line 96 of file webrtc/transport.c.

◆ data_channel

webrtc_data_channel_t* webrtc_transport_data_t::data_channel

Borrowed data channel.

Definition at line 82 of file webrtc/transport.c.

◆ data_channel_closed

bool webrtc_transport_data_t::data_channel_closed

DataChannel close is terminal for this transport.

Definition at line 95 of file webrtc/transport.c.

◆ disconnected_since_ns

uint64_t webrtc_transport_data_t::disconnected_since_ns

Start of the current transient ICE disconnect.

Definition at line 97 of file webrtc/transport.c.

◆ is_connected

bool webrtc_transport_data_t::is_connected

Connection state.

Definition at line 94 of file webrtc/transport.c.

◆ on_ready

void(* webrtc_transport_data_t::on_ready) (acip_transport_t *, void *)

Definition at line 84 of file webrtc/transport.c.

◆ partial

uint8_t* webrtc_transport_data_t::partial

Incomplete ACIP packet bytes.

Definition at line 88 of file webrtc/transport.c.

◆ partial_capacity

size_t webrtc_transport_data_t::partial_capacity

Definition at line 90 of file webrtc/transport.c.

◆ partial_len

size_t webrtc_transport_data_t::partial_len

Definition at line 89 of file webrtc/transport.c.

◆ partial_since_ns

uint64_t webrtc_transport_data_t::partial_since_ns

Definition at line 91 of file webrtc/transport.c.

◆ peer_conn

webrtc_peer_connection_t* webrtc_transport_data_t::peer_conn

Borrowed peer connection.

Definition at line 81 of file webrtc/transport.c.

◆ queue_cond

cond_t webrtc_transport_data_t::queue_cond

Signal when messages arrive.

Definition at line 93 of file webrtc/transport.c.

◆ queue_mutex

mutex_t webrtc_transport_data_t::queue_mutex

Protect queue operations.

Definition at line 92 of file webrtc/transport.c.

◆ ready_user_data

void* webrtc_transport_data_t::ready_user_data

Definition at line 85 of file webrtc/transport.c.

◆ recv_queue

ringbuffer_t* webrtc_transport_data_t::recv_queue

Receive message queue.

Definition at line 87 of file webrtc/transport.c.

◆ security

acip_security_t* webrtc_transport_data_t::security

Owned per-peer security state.

Definition at line 83 of file webrtc/transport.c.

◆ send_mutex

mutex_t webrtc_transport_data_t::send_mutex

Keep chunks from concurrent packets together.

Definition at line 99 of file webrtc/transport.c.

◆ state_mutex

mutex_t webrtc_transport_data_t::state_mutex

Protect state changes.

Definition at line 98 of file webrtc/transport.c.

◆ transport

acip_transport_t* webrtc_transport_data_t::transport

Borrowed enclosing transport.

Definition at line 86 of file webrtc/transport.c.


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