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

Context passed to client handler thread. More...

#include <include/ascii-chat/network/websocket/server.h>

Data Fields

acip_transport_t * transport
 ACIP transport for this client.
 
char client_ip [64]
 Client IP address (for logging/rate limiting)
 
int client_port
 Client port.
 
void * user_data
 User-provided data from server config.
 
bool is_secure
 True if connection is using TLS (wss://)
 
bool auth_required
 True if client authentication is required.
 

Detailed Description

Context passed to client handler thread.

Contains all information needed to handle a WebSocket client connection.

Definition at line 81 of file include/ascii-chat/network/websocket/server.h.

Field Documentation

◆ auth_required

bool websocket_client_context_t::auth_required

True if client authentication is required.

Definition at line 87 of file include/ascii-chat/network/websocket/server.h.

Referenced by acds_websocket_client_handler().

◆ client_ip

char websocket_client_context_t::client_ip[64]

Client IP address (for logging/rate limiting)

Definition at line 83 of file include/ascii-chat/network/websocket/server.h.

Referenced by acds_websocket_client_handler().

◆ client_port

int websocket_client_context_t::client_port

Client port.

Definition at line 84 of file include/ascii-chat/network/websocket/server.h.

◆ is_secure

bool websocket_client_context_t::is_secure

True if connection is using TLS (wss://)

Definition at line 86 of file include/ascii-chat/network/websocket/server.h.

Referenced by acds_websocket_client_handler().

◆ transport

acip_transport_t* websocket_client_context_t::transport

ACIP transport for this client.

Definition at line 82 of file include/ascii-chat/network/websocket/server.h.

Referenced by acds_websocket_client_handler().

◆ user_data

void* websocket_client_context_t::user_data

User-provided data from server config.

Definition at line 85 of file include/ascii-chat/network/websocket/server.h.

Referenced by acds_websocket_client_handler().


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