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

#include <src/client/connection_internal.h>

Data Fields

network_connection_t * network
atomic_ptr_t transport
session_capture_ctx_t * capture_context
session_display_ctx_t * display_context
audio_context_t * audio_context
atomic_t display_first_frame
int audio_receive_count
fps_t frame_fps_tracker
bool frame_fps_tracker_initialized
uint32_t frame_last_width
uint32_t frame_last_height
uint64_t frame_first_frame_time_ns
bool frame_first_frame_recorded
int frame_snapshot_frame_count
uint64_t frame_last_debug_log_ns
bool frame_first_frame_rendered
bool send_mutex_initialized
session_connection_t lifecycle
bool audio_queue_mutex_initialized
bool audio_queue_cond_initialized
atomic_t stop_requested
atomic_t connection_active
atomic_t remote_error
atomic_t telemetry_ping_ns
atomic_t connection_lost
uint32_t my_client_id
char server_ip [HOSTNAME_BUFFER_SIZE]
int server_port
mutex_t send_mutex
crypto_handshake_context_t * crypto_ctx
h265_encoder_t *volatile video_encoder
buffer_workspace_t encoded_video_workspace
buffer_workspace_t decoded_ascii_workspace
atomic_t data_thread_exited
atomic_t frames_rendered
atomic_t snapshot_first_frame_time_ns
session_protocol_t protocol
terminal_size_t advertised_dimensions
bool capture_thread_created
atomic_t capture_thread_exited
bool audio_capture_thread_created
atomic_t audio_capture_thread_exited
audio_send_packet_t audio_send_queue [32]
int audio_send_queue_head
int audio_send_queue_tail
mutex_t audio_send_queue_mutex
cond_t audio_send_queue_cond
lifecycle_t audio_send_queue_lc
bool audio_sender_thread_created
bool audio_send_direct
atomic_t audio_sender_should_exit
atomic_t audio_sender_exited
bool ping_thread_created
atomic_t ping_thread_exited
uint8_t crypto_mode
thread_pool_t * client_worker_pool
client_audio_pipeline_t * audio_pipeline

Detailed Description

Definition at line 48 of file connection_internal.h.

Field Documentation

◆ advertised_dimensions

terminal_size_t client_connection::advertised_dimensions

Definition at line 87 of file connection_internal.h.

Referenced by threaded_send_terminal_size_with_auto_detect().

◆ audio_capture_thread_created

bool client_connection::audio_capture_thread_created

Definition at line 90 of file connection_internal.h.

Referenced by audio_start_thread(), and audio_stop_thread().

◆ audio_capture_thread_exited

atomic_t client_connection::audio_capture_thread_exited

◆ audio_context

◆ audio_pipeline

client_audio_pipeline_t* client_connection::audio_pipeline

◆ audio_queue_cond_initialized

bool client_connection::audio_queue_cond_initialized

Definition at line 69 of file connection_internal.h.

Referenced by audio_sender_finalize(), and audio_sender_init().

◆ audio_queue_mutex_initialized

bool client_connection::audio_queue_mutex_initialized

Definition at line 68 of file connection_internal.h.

Referenced by audio_sender_finalize(), and audio_sender_init().

◆ audio_receive_count

int client_connection::audio_receive_count

Definition at line 56 of file connection_internal.h.

Referenced by audio_process_received_samples().

◆ audio_send_direct

bool client_connection::audio_send_direct

Definition at line 99 of file connection_internal.h.

Referenced by audio_sender_init().

◆ audio_send_queue

audio_send_packet_t client_connection::audio_send_queue[32]

Definition at line 92 of file connection_internal.h.

◆ audio_send_queue_cond

cond_t client_connection::audio_send_queue_cond

◆ audio_send_queue_head

int client_connection::audio_send_queue_head

Definition at line 93 of file connection_internal.h.

◆ audio_send_queue_lc

lifecycle_t client_connection::audio_send_queue_lc

◆ audio_send_queue_mutex

mutex_t client_connection::audio_send_queue_mutex

◆ audio_send_queue_tail

int client_connection::audio_send_queue_tail

Definition at line 94 of file connection_internal.h.

◆ audio_sender_exited

atomic_t client_connection::audio_sender_exited

Definition at line 101 of file connection_internal.h.

Referenced by audio_sender_init(), and audio_stop_thread().

◆ audio_sender_should_exit

atomic_t client_connection::audio_sender_should_exit

Definition at line 100 of file connection_internal.h.

Referenced by audio_sender_cleanup(), and audio_stop_thread().

◆ audio_sender_thread_created

bool client_connection::audio_sender_thread_created

Definition at line 98 of file connection_internal.h.

Referenced by audio_sender_cleanup(), and audio_sender_init().

◆ capture_context

session_capture_ctx_t* client_connection::capture_context

◆ capture_thread_created

bool client_connection::capture_thread_created

Definition at line 88 of file connection_internal.h.

Referenced by capture_start_thread(), and capture_stop_thread().

◆ capture_thread_exited

atomic_t client_connection::capture_thread_exited

◆ client_worker_pool

◆ connection_active

◆ connection_lost

◆ crypto_ctx

crypto_handshake_context_t* client_connection::crypto_ctx

Definition at line 79 of file connection_internal.h.

Referenced by client_connection_start(), and client_crypto_init().

◆ crypto_mode

uint8_t client_connection::crypto_mode

Definition at line 104 of file connection_internal.h.

Referenced by client_connection_create(), and client_crypto_init().

◆ data_thread_exited

atomic_t client_connection::data_thread_exited

Definition at line 83 of file connection_internal.h.

Referenced by client_protocol_connection_lost(), and client_protocol_start().

◆ decoded_ascii_workspace

buffer_workspace_t client_connection::decoded_ascii_workspace

Definition at line 82 of file connection_internal.h.

Referenced by client_protocol_start().

◆ display_context

session_display_ctx_t* client_connection::display_context

Definition at line 53 of file connection_internal.h.

Referenced by display_poll_keyboard(), and display_render_frame().

◆ display_first_frame

atomic_t client_connection::display_first_frame

◆ encoded_video_workspace

buffer_workspace_t client_connection::encoded_video_workspace

Definition at line 81 of file connection_internal.h.

Referenced by threaded_send_image_frame_encoded().

◆ frame_first_frame_recorded

bool client_connection::frame_first_frame_recorded

Definition at line 62 of file connection_internal.h.

◆ frame_first_frame_rendered

bool client_connection::frame_first_frame_rendered

Definition at line 65 of file connection_internal.h.

◆ frame_first_frame_time_ns

uint64_t client_connection::frame_first_frame_time_ns

Definition at line 61 of file connection_internal.h.

◆ frame_fps_tracker

fps_t client_connection::frame_fps_tracker

Definition at line 57 of file connection_internal.h.

◆ frame_fps_tracker_initialized

bool client_connection::frame_fps_tracker_initialized

Definition at line 58 of file connection_internal.h.

◆ frame_last_debug_log_ns

uint64_t client_connection::frame_last_debug_log_ns

Definition at line 64 of file connection_internal.h.

◆ frame_last_height

uint32_t client_connection::frame_last_height

Definition at line 60 of file connection_internal.h.

◆ frame_last_width

uint32_t client_connection::frame_last_width

Definition at line 59 of file connection_internal.h.

◆ frame_snapshot_frame_count

int client_connection::frame_snapshot_frame_count

Definition at line 63 of file connection_internal.h.

◆ frames_rendered

atomic_t client_connection::frames_rendered

Definition at line 84 of file connection_internal.h.

◆ lifecycle

◆ my_client_id

uint32_t client_connection::my_client_id

◆ network

network_connection_t* client_connection::network

Definition at line 49 of file connection_internal.h.

Referenced by client_connection_start(), and client_crypto_init().

◆ ping_thread_created

bool client_connection::ping_thread_created

Definition at line 102 of file connection_internal.h.

Referenced by keepalive_start_thread(), and keepalive_stop_thread().

◆ ping_thread_exited

atomic_t client_connection::ping_thread_exited

◆ protocol

session_protocol_t client_connection::protocol

Definition at line 86 of file connection_internal.h.

Referenced by client_protocol_start().

◆ remote_error

atomic_t client_connection::remote_error

◆ send_mutex

mutex_t client_connection::send_mutex

Definition at line 78 of file connection_internal.h.

Referenced by client_connection_destroy(), and server_connection_init().

◆ send_mutex_initialized

bool client_connection::send_mutex_initialized

Definition at line 66 of file connection_internal.h.

Referenced by client_connection_destroy(), and server_connection_init().

◆ server_ip

char client_connection::server_ip[HOSTNAME_BUFFER_SIZE]

Definition at line 76 of file connection_internal.h.

Referenced by server_connection_get_ip(), and server_connection_set_ip().

◆ server_port

int client_connection::server_port

Definition at line 77 of file connection_internal.h.

Referenced by server_connection_get_port(), and server_connection_set_port().

◆ snapshot_first_frame_time_ns

atomic_t client_connection::snapshot_first_frame_time_ns

Definition at line 85 of file connection_internal.h.

◆ stop_requested

atomic_t client_connection::stop_requested

Definition at line 70 of file connection_internal.h.

Referenced by client_connection_start().

◆ telemetry_ping_ns

atomic_t client_connection::telemetry_ping_ns

◆ transport

◆ video_encoder

h265_encoder_t* volatile client_connection::video_encoder

Definition at line 80 of file connection_internal.h.

Referenced by threaded_send_image_frame_encoded().


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