ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
acip_transport Struct Reference

Transport instance structure. More...

#include <include/ascii-chat/network/acip/transport.h>

Data Fields

struct acip_outbound * outbound
 Per-connection plaintext admission and scheduling.
stats_peer_t * stats_peer
 Owned statistics handle, destroyed with transport.
const acip_transport_methods_t * methods
 Method table (virtual functions).
crypto_context_t * crypto_ctx
 Optional encryption context.
atomic_t packet_security_active
 Publishes the stable post-handshake crypto owner.
uint64_t receive_timeout_ns
 Optional TCP receive timeout override; zero uses the normal polling timeout.
bool prefer_visual_datagrams
 Select negotiated visual datagrams when supported.
bool prefer_audio_datagrams
 Select negotiated datagrams for audio, otherwise reliable delivery.
void * impl_data
 Transport-specific state.
void * user_data
 Application-specific context (e.g., per-client data).

Detailed Description

Transport instance structure.

Base structure for all transport implementations. Specific transports extend this with their own state.

Definition at line 259 of file include/ascii-chat/network/acip/transport.h.

Field Documentation

◆ crypto_ctx

◆ impl_data

◆ methods

◆ outbound

struct acip_outbound* acip_transport::outbound

◆ packet_security_active

atomic_t acip_transport::packet_security_active

Publishes the stable post-handshake crypto owner.

Definition at line 264 of file include/ascii-chat/network/acip/transport.h.

Referenced by acip_security_activate(), and acip_security_flush().

◆ prefer_audio_datagrams

bool acip_transport::prefer_audio_datagrams

Select negotiated datagrams for audio, otherwise reliable delivery.

Definition at line 267 of file include/ascii-chat/network/acip/transport.h.

Referenced by packet_send_via_transportv().

◆ prefer_visual_datagrams

bool acip_transport::prefer_visual_datagrams

Select negotiated visual datagrams when supported.

Definition at line 266 of file include/ascii-chat/network/acip/transport.h.

Referenced by packet_send_via_transportv().

◆ receive_timeout_ns

uint64_t acip_transport::receive_timeout_ns

Optional TCP receive timeout override; zero uses the normal polling timeout.

Definition at line 265 of file include/ascii-chat/network/acip/transport.h.

Referenced by discovery_session_start(), and network_client_negotiate().

◆ stats_peer

◆ user_data

void* acip_transport::user_data

Application-specific context (e.g., per-client data).

Definition at line 269 of file include/ascii-chat/network/acip/transport.h.

Referenced by acds_on_host_announcement_ex().


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