|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
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) | |
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.