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

Protocol version negotiation packet structure (Packet Type 1) More...

#include <lib/network/packet.h>

Data Fields

uint16_t protocol_version
 Major protocol version (must match for compatibility)
 
uint16_t protocol_revision
 Minor protocol revision (server can be newer)
 
uint8_t supports_encryption
 Encryption support flag (1=support encryption, 0=plaintext only)
 
uint8_t compression_algorithms
 Supported compression algorithms bitmask (COMPRESS_ALGO_*)
 
uint8_t compression_threshold
 Compression threshold percentage (0-100, e.g., 80 = compress if >80% size reduction)
 
uint16_t feature_flags
 Feature flags bitmask (FEATURE_RLE_ENCODING, etc.)
 
uint8_t reserved [7]
 Reserved bytes for future expansion (must be zero)
 

Detailed Description

Protocol version negotiation packet structure (Packet Type 1)

Initial handshake packet sent by both client and server to negotiate protocol capabilities, version, compression, and optional features.

Note
This is the first packet exchanged in every connection.
Structure is 16 bytes total (packed).

Definition at line 710 of file packet.h.


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