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_server Struct Reference

Runtime state for the WebSocket listener and its client-handler pool. More...

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

Data Fields

struct lws_context * context
 libwebsockets context
websocket_client_handler_fn handler
 Client handler function.
void * user_data
 User data for handlers.
atomic_t running
 Server running flag.
int port
 Listening port.
bool tls_enabled
 True when this listener is configured with TLS credentials.
struct thread_pool * handler_pool
 Thread pool for queueing handler work.

Detailed Description

Runtime state for the WebSocket listener and its client-handler pool.

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

Field Documentation

◆ context

struct lws_context* websocket_server::context

◆ handler

websocket_client_handler_fn websocket_server::handler

Client handler function.

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

Referenced by websocket_server_init().

◆ handler_pool

struct thread_pool* websocket_server::handler_pool

Thread pool for queueing handler work.

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

Referenced by websocket_server_destroy(), and websocket_server_init().

◆ port

int websocket_server::port

Listening port.

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

Referenced by websocket_server_init(), and websocket_server_run().

◆ running

atomic_t websocket_server::running

◆ tls_enabled

bool websocket_server::tls_enabled

True when this listener is configured with TLS credentials.

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

Referenced by websocket_server_init().

◆ user_data

void* websocket_server::user_data

User data for handlers.

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

Referenced by websocket_server_init().


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