|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Packet envelope containing received packet data. More...
#include <lib/network/packet.h>
Data Fields | |
| packet_type_t | type |
| Packet type (from packet_types.h) | |
| void * | data |
| Packet payload data (decrypted and decompressed if applicable) | |
| size_t | len |
| Length of payload data in bytes. | |
| bool | was_encrypted |
| True if packet was encrypted (decrypted before envelope creation) | |
| void * | allocated_buffer |
| Buffer that needs to be freed by caller (may be NULL if not allocated) | |
| size_t | allocated_size |
| Size of allocated buffer in bytes. | |
Packet envelope containing received packet data.
Represents a complete received packet with all metadata. The envelope includes packet type, payload data, encryption status, and buffer ownership information for proper memory management.
MEMORY MANAGEMENT: