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

For network connect config, this is the live record that ties timeout_ms, callback_data, tls_ca_file, quic_visual_datagrams together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. WebSocket establishes its library-managed transport. Returns one owned object. More...

#include <include/ascii-chat/network/connection.h>

Data Fields

uint32_t timeout_ms
bool(* should_exit_callback )(void *)
void * callback_data
const char * tls_ca_file
bool quic_visual_datagrams
bool quic_audio_datagrams

Detailed Description

For network connect config, this is the live record that ties timeout_ms, callback_data, tls_ca_file, quic_visual_datagrams together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. WebSocket establishes its library-managed transport. Returns one owned object.

Shared outbound establishment. Native TCP is adopted into the event backend;

For network server config, this is the live record that ties port, ipv4_address, ipv6_address, bind_ipv4 together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Definition at line 103 of file include/ascii-chat/network/connection.h.

Field Documentation

◆ callback_data

void* network_connect_config_t::callback_data

Definition at line 106 of file include/ascii-chat/network/connection.h.

◆ quic_audio_datagrams

bool network_connect_config_t::quic_audio_datagrams

Prefer datagrams for audio when supported by the peer.

Definition at line 109 of file include/ascii-chat/network/connection.h.

◆ quic_visual_datagrams

bool network_connect_config_t::quic_visual_datagrams

Prefer negotiated visual datagrams.

Definition at line 108 of file include/ascii-chat/network/connection.h.

◆ should_exit_callback

bool(* network_connect_config_t::should_exit_callback) (void *)

Definition at line 105 of file include/ascii-chat/network/connection.h.

◆ timeout_ms

uint32_t network_connect_config_t::timeout_ms

Definition at line 104 of file include/ascii-chat/network/connection.h.

Referenced by network_connection_open().

◆ tls_ca_file

const char* network_connect_config_t::tls_ca_file

Optional trust anchors for secure network connections.

Definition at line 107 of file include/ascii-chat/network/connection.h.


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