ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
websocket_connection_data_t Struct Reference

Per-connection user data. More...

Data Fields

websocket_server_t * server
 Back-reference to server.
 
acip_transport_t * transport
 ACIP transport for this connection.
 
asciichat_thread_t handler_thread
 Client handler thread.
 
bool handler_started
 True if handler thread was started.
 
bool cleaning_up
 True if cleanup is in progress (prevents race with remove_client)
 
uint8_t * pending_send_data
 Current message being sent.
 
size_t pending_send_len
 Total length of message being sent.
 
size_t pending_send_offset
 Current offset in message (bytes already sent)
 
bool has_pending_send
 True if there's an in-progress message.
 

Detailed Description

Per-connection user data.

Stored in libwebsockets per-session user data (wsi user pointer).

Definition at line 37 of file lib/network/websocket/server.c.

Field Documentation

◆ cleaning_up

bool websocket_connection_data_t::cleaning_up

True if cleanup is in progress (prevents race with remove_client)

Definition at line 42 of file lib/network/websocket/server.c.

◆ handler_started

bool websocket_connection_data_t::handler_started

True if handler thread was started.

Definition at line 41 of file lib/network/websocket/server.c.

◆ handler_thread

asciichat_thread_t websocket_connection_data_t::handler_thread

Client handler thread.

Definition at line 40 of file lib/network/websocket/server.c.

◆ has_pending_send

bool websocket_connection_data_t::has_pending_send

True if there's an in-progress message.

Definition at line 48 of file lib/network/websocket/server.c.

◆ pending_send_data

uint8_t* websocket_connection_data_t::pending_send_data

Current message being sent.

Definition at line 45 of file lib/network/websocket/server.c.

◆ pending_send_len

size_t websocket_connection_data_t::pending_send_len

Total length of message being sent.

Definition at line 46 of file lib/network/websocket/server.c.

◆ pending_send_offset

size_t websocket_connection_data_t::pending_send_offset

Current offset in message (bytes already sent)

Definition at line 47 of file lib/network/websocket/server.c.

◆ server

websocket_server_t* websocket_connection_data_t::server

Back-reference to server.

Definition at line 38 of file lib/network/websocket/server.c.

◆ transport

acip_transport_t* websocket_connection_data_t::transport

ACIP transport for this connection.

Definition at line 39 of file lib/network/websocket/server.c.


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