|
ecsnet
|
The header of a network packet. Contains metadata about the packet, such as its size and type. Note on padding: The size is 2 bytes and the enum type is 4 bytes, which results in 2 bytes of padding to align the struct to an 8-byte boundary. More...
#include <protocol_handler.h>
Public Attributes | |
| uint16_t | size |
| packet_type_t | type |
The header of a network packet. Contains metadata about the packet, such as its size and type. Note on padding: The size is 2 bytes and the enum type is 4 bytes, which results in 2 bytes of padding to align the struct to an 8-byte boundary.
| uint16_t packet_header_t::size |
The total size of the packet in bytes.
| packet_type_t packet_header_t::type |
The type of the packet.