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

Remote client information structure for multi-user client tracking. More...

Data Fields

uint32_t client_id
 Unique client identifier assigned by server.
 
char display_name [MAX_DISPLAY_NAME_LEN]
 User-friendly display name (null-terminated)
 
bool is_active
 Whether client is currently active (sending video/audio)
 
time_t last_seen
 Timestamp when client was last seen (for timeout detection)
 

Detailed Description

Remote client information structure for multi-user client tracking.

Tracks information about other clients connected to the server. Used by the client to maintain awareness of other participants in the chat session.

CORE FIELDS:

  • client_id: Unique identifier for this remote client
  • display_name: User-friendly display name for the client
  • is_active: Whether this client is currently active (sending video/audio)
  • last_seen: Timestamp when this client was last seen (for timeout detection)

USAGE:

The client maintains an array of remote_client_info_t structures to track all other clients. This information is used for:

  • Multi-user display coordination
  • Client list display
  • Connection state awareness
  • Timeout detection
Note
The client_id matches the server's assigned client identifier.
display_name is received from server in CLIENT_JOIN packets.
is_active indicates whether client is sending media (video/audio).
last_seen is updated when receiving packets from this client.

Definition at line 201 of file client/protocol.c.

Field Documentation

◆ client_id

uint32_t remote_client_info_t::client_id

Unique client identifier assigned by server.

Definition at line 203 of file client/protocol.c.

◆ display_name

char remote_client_info_t::display_name[MAX_DISPLAY_NAME_LEN]

User-friendly display name (null-terminated)

Definition at line 205 of file client/protocol.c.

◆ is_active

bool remote_client_info_t::is_active

Whether client is currently active (sending video/audio)

Definition at line 207 of file client/protocol.c.

◆ last_seen

time_t remote_client_info_t::last_seen

Timestamp when client was last seen (for timeout detection)

Definition at line 209 of file client/protocol.c.


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