CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
CdiRawPacketHeader Struct Reference

Union of raw CDI packet headers. Use to reserve memory that can be used to hold raw CDI packet headers that do not contain extra data. Each protocol version uses a specific data format and is kept internal. Use PayloadHeaderDecode() to decoded the raw packet header into CdiDecodedPacketHeader, which is protocol independent. Use PayloadHeaderInit() to convert a CdiDecodedPacketHeader into this format. More...

#include <protocol.h>

Data Fields

union { 
 
   uint8_t   header_v1 [CDI_RAW_PACKET_HEADER_SIZE_V1] 
 For protocol version 1.
 
   uint8_t   header_v2 [CDI_RAW_PACKET_HEADER_SIZE_V2] 
 For protocol version 2.
 
};  
 

Detailed Description

Union of raw CDI packet headers. Use to reserve memory that can be used to hold raw CDI packet headers that do not contain extra data. Each protocol version uses a specific data format and is kept internal. Use PayloadHeaderDecode() to decoded the raw packet header into CdiDecodedPacketHeader, which is protocol independent. Use PayloadHeaderInit() to convert a CdiDecodedPacketHeader into this format.


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