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