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

Client registry entry. More...

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

Data Fields

socket_t socket
 Client socket (hash key)
 
void * client_data
 User-provided client data.
 
thread_pool_t * threads
 Thread pool for client worker threads.
 
UT_hash_handle hh
 uthash handle
 

Detailed Description

Client registry entry.

Internal structure for tracking connected clients. Uses uthash for efficient socket-based lookup. Each client can have multiple worker threads tracked in a thread pool.

Definition at line 158 of file include/ascii-chat/network/tcp/server.h.

Field Documentation

◆ client_data

void* tcp_client_entry::client_data

◆ hh

UT_hash_handle tcp_client_entry::hh

uthash handle

Definition at line 162 of file include/ascii-chat/network/tcp/server.h.

◆ socket

socket_t tcp_client_entry::socket

Client socket (hash key)

Definition at line 159 of file include/ascii-chat/network/tcp/server.h.

Referenced by tcp_server_add_client(), and tcp_server_foreach_client().

◆ threads


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