ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
app_client Struct Reference

Client-side application state. More...

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

Data Fields

connection_handle_t connection
 
audio_context_t audio_ctx
 
app_client_audio_packet_t audio_send_queue [256]
 
int audio_send_queue_head
 
int audio_send_queue_tail
 
mutex_t audio_send_queue_mutex
 
cond_t audio_send_queue_cond
 
bool audio_send_queue_initialized
 
atomic_t audio_sender_should_exit
 
asciichat_thread_t audio_capture_thread
 
asciichat_thread_t audio_sender_thread
 
bool audio_capture_thread_created
 
bool audio_sender_thread_created
 
atomic_t audio_capture_thread_exited
 
asciichat_thread_t data_reception_thread
 
bool data_thread_created
 
atomic_t data_thread_exited
 
uint32_t last_active_count
 
bool server_state_initialized
 
bool should_clear_before_next_frame
 
uint32_t my_client_id
 
bool encryption_enabled
 
asciichat_thread_t capture_thread
 
bool capture_thread_created
 
atomic_t capture_thread_exited
 
asciichat_thread_t ping_thread
 
bool ping_thread_created
 
atomic_t ping_thread_exited
 
bool has_tty
 
atomic_t is_first_frame_of_connection
 
tty_info_t tty_info
 
crypto_handshake_context_t crypto_ctx
 
bool crypto_initialized
 

Detailed Description

Client-side application state.

Transport-agnostic container for application-layer state previously mixed in tcp_client_t. Holds audio queues, thread handles, crypto context, and display state. Connection ownership is tracked through connection_handle_t.

Definition at line 233 of file include/ascii-chat/network/client.h.

Field Documentation

◆ audio_capture_thread

asciichat_thread_t app_client::audio_capture_thread

Definition at line 252 of file include/ascii-chat/network/client.h.

◆ audio_capture_thread_created

bool app_client::audio_capture_thread_created

Definition at line 254 of file include/ascii-chat/network/client.h.

◆ audio_capture_thread_exited

atomic_t app_client::audio_capture_thread_exited

Definition at line 256 of file include/ascii-chat/network/client.h.

◆ audio_ctx

audio_context_t app_client::audio_ctx

Definition at line 244 of file include/ascii-chat/network/client.h.

◆ audio_send_queue

app_client_audio_packet_t app_client::audio_send_queue[256]

Definition at line 245 of file include/ascii-chat/network/client.h.

◆ audio_send_queue_cond

cond_t app_client::audio_send_queue_cond

Definition at line 249 of file include/ascii-chat/network/client.h.

◆ audio_send_queue_head

int app_client::audio_send_queue_head

Definition at line 246 of file include/ascii-chat/network/client.h.

◆ audio_send_queue_initialized

bool app_client::audio_send_queue_initialized

Definition at line 250 of file include/ascii-chat/network/client.h.

◆ audio_send_queue_mutex

mutex_t app_client::audio_send_queue_mutex

Definition at line 248 of file include/ascii-chat/network/client.h.

◆ audio_send_queue_tail

int app_client::audio_send_queue_tail

Definition at line 247 of file include/ascii-chat/network/client.h.

◆ audio_sender_should_exit

atomic_t app_client::audio_sender_should_exit

Definition at line 251 of file include/ascii-chat/network/client.h.

◆ audio_sender_thread

asciichat_thread_t app_client::audio_sender_thread

Definition at line 253 of file include/ascii-chat/network/client.h.

◆ audio_sender_thread_created

bool app_client::audio_sender_thread_created

Definition at line 255 of file include/ascii-chat/network/client.h.

◆ capture_thread

asciichat_thread_t app_client::capture_thread

Definition at line 275 of file include/ascii-chat/network/client.h.

◆ capture_thread_created

bool app_client::capture_thread_created

Definition at line 276 of file include/ascii-chat/network/client.h.

◆ capture_thread_exited

atomic_t app_client::capture_thread_exited

Definition at line 277 of file include/ascii-chat/network/client.h.

◆ connection

connection_handle_t app_client::connection

Definition at line 238 of file include/ascii-chat/network/client.h.

◆ crypto_ctx

crypto_handshake_context_t app_client::crypto_ctx

Definition at line 299 of file include/ascii-chat/network/client.h.

◆ crypto_initialized

bool app_client::crypto_initialized

Definition at line 300 of file include/ascii-chat/network/client.h.

◆ data_reception_thread

asciichat_thread_t app_client::data_reception_thread

Definition at line 262 of file include/ascii-chat/network/client.h.

◆ data_thread_created

bool app_client::data_thread_created

Definition at line 263 of file include/ascii-chat/network/client.h.

◆ data_thread_exited

atomic_t app_client::data_thread_exited

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

◆ encryption_enabled

bool app_client::encryption_enabled

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

◆ has_tty

bool app_client::has_tty

Definition at line 291 of file include/ascii-chat/network/client.h.

◆ is_first_frame_of_connection

atomic_t app_client::is_first_frame_of_connection

Definition at line 292 of file include/ascii-chat/network/client.h.

◆ last_active_count

uint32_t app_client::last_active_count

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

◆ my_client_id

uint32_t app_client::my_client_id

Definition at line 268 of file include/ascii-chat/network/client.h.

◆ ping_thread

asciichat_thread_t app_client::ping_thread

Definition at line 283 of file include/ascii-chat/network/client.h.

◆ ping_thread_created

bool app_client::ping_thread_created

Definition at line 284 of file include/ascii-chat/network/client.h.

◆ ping_thread_exited

atomic_t app_client::ping_thread_exited

Definition at line 285 of file include/ascii-chat/network/client.h.

◆ server_state_initialized

bool app_client::server_state_initialized

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

◆ should_clear_before_next_frame

bool app_client::should_clear_before_next_frame

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

◆ tty_info

tty_info_t app_client::tty_info

Definition at line 293 of file include/ascii-chat/network/client.h.


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