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

Client registry entry. More...

#include <lib/network/tcp/server.h>

Data Fields

socket_t socket
 Client socket (hash key)
 
void * client_data
 User-provided client data.
 
thread_pool_tthreads
 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 144 of file lib/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 148 of file lib/network/tcp/server.h.

◆ socket

socket_t tcp_client_entry::socket

Client socket (hash key)

Definition at line 145 of file lib/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: