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

Error packet structure carrying error code and textual description. More...

#include <lib/network/packet.h>

Data Fields

uint32_t error_code
 Error code from asciichat_error_t enumeration.
 
uint32_t message_length
 Length of message payload in bytes (0-512)
 

Detailed Description

Error packet structure carrying error code and textual description.

Error packets allow either side of the connection to report a specific asciichat_error_t along with a human-readable message describing the failure. The message payload follows the structure in the packet and is not guaranteed to be null-terminated on the wire. Consumers should rely on the message_length field when copying. Error packets may be transmitted in plaintext before the crypto handshake completes (and whenever encryption is disabled), but MUST be encrypted once a session key is active.

Definition at line 619 of file packet.h.


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