CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
Union of decoded CDI packet headers. Use to reserve memory that can be used to hold any type of decoded CDI packet header. Decoded headers are protocol independent. More...
#include <protocol.h>
Data Fields | ||
CdiPayloadType | payload_type | |
Payload type from CdiPayloadType. | ||
int | packet_sequence_num | |
Packet sequence number for the payload. | ||
int | payload_num | |
Payload number this CDI packet is associated with. | ||
int | encoded_header_size | |
Size of encoded header in bytes. | ||
uint32_t | packet_id | |
Packet ID. Increments by 1 for each packet across all payloads (wraps at 0). NOTE: Only valid for protocols 2 and later. | ||
union { | ||
CdiDecodedPacketDataOffsetInfo data_offset_info | ||
Valid when payload_type is kPayloadTypeDataOffset. | ||
CdiDecodedPacketNum0Info num0_info | ||
Valid when payload_type is kPayloadTypeData and packet_sequence_num=0. | ||
}; | ||
Union of decoded CDI packet headers. Use to reserve memory that can be used to hold any type of decoded CDI packet header. Decoded headers are protocol independent.