ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
client_info_packet_t Struct Reference

Client information packet structure. More...

#include <include/ascii-chat/network/packet/packet.h>

Data Fields

uint32_t client_id
 Unique client identifier (1-9, 0 = server).
char display_name [32]
 User display name (null-terminated, max MAX_DISPLAY_NAME_LEN bytes).
uint32_t capabilities
 Client capabilities bitmask (CLIENT_CAP_VIDEO | CLIENT_CAP_AUDIO | CLIENT_CAP_COLOR | CLIENT_CAP_STRETCH).

Detailed Description

Client information packet structure.

Contains client identification and capability information. Used in multi-user protocol for client join/leave notifications.

Definition at line 692 of file packet.h.

Field Documentation

◆ capabilities

uint32_t client_info_packet_t::capabilities

Client capabilities bitmask (CLIENT_CAP_VIDEO | CLIENT_CAP_AUDIO | CLIENT_CAP_COLOR | CLIENT_CAP_STRETCH).

Definition at line 699 of file packet.h.

Referenced by handle_client_join_packet(), and threaded_send_client_join_packet().

◆ client_id

uint32_t client_info_packet_t::client_id

Unique client identifier (1-9, 0 = server).

Definition at line 694 of file packet.h.

Referenced by threaded_send_client_join_packet().

◆ display_name

char client_info_packet_t::display_name[32]

User display name (null-terminated, max MAX_DISPLAY_NAME_LEN bytes).

Definition at line 696 of file packet.h.

Referenced by handle_client_join_packet(), and threaded_send_client_join_packet().


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