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

Per-client connection context. More...

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

Data Fields

socket_t client_socket
 Client connection socket.
 
struct sockaddr_storage addr
 Client address.
 
socklen_t addr_len
 Address length.
 
void * user_data
 User-provided data from config.
 

Detailed Description

Per-client connection context.

Passed to client handler threads with connection information. The handler is responsible for closing the socket and freeing this structure when done.

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

Field Documentation

◆ addr

struct sockaddr_storage tcp_client_context_t::addr

◆ addr_len

socklen_t tcp_client_context_t::addr_len

Address length.

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

Referenced by tcp_server_run().

◆ client_socket

socket_t tcp_client_context_t::client_socket

Client connection socket.

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

Referenced by acds_client_handler(), and tcp_server_run().

◆ user_data

void* tcp_client_context_t::user_data

User-provided data from config.

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

Referenced by acds_client_handler(), and tcp_server_run().


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