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

Listener settings and callbacks used to create a WebSocket server. 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

Listener settings and callbacks used to create a WebSocket server.

Connection-specific values handed to a WebSocket client worker.

The context identifies the ACIP transport and peer address, records whether TLS and authentication apply, and carries the server's borrowed user data.

Contains all information needed to handle a WebSocket client connection.

Definition at line 87 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 93 of file include/ascii-chat/network/websocket/server.h.

◆ client_ip

char websocket_client_context_t::client_ip[64]

Client IP address (for logging/rate limiting).

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

◆ client_port

int websocket_client_context_t::client_port

Client port.

Definition at line 90 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 92 of file include/ascii-chat/network/websocket/server.h.

◆ transport

acip_transport_t* websocket_client_context_t::transport

ACIP transport for this client.

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

◆ user_data

void* websocket_client_context_t::user_data

User-provided data from server config.

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


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