CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
Structure to store the current state of a packet being constructed. Its purpose is to allow for the suspension of the creation of a packet if a pool from which items need to be allocated is empty. A state object is passed in to CdiPayloadInit() prior to calls to CdiPayloadParseCDIPacket() for a given payload. More...
Public Types | |
enum | { kStateInactive , kStateAddingHeader , kStateAddingEntries } |
Data Fields | |
enum CdiPacketizerState:: { ... } | state |
CdiSglEntry * | packet_entry_hdr_ptr |
Pointer to the current payload SGL entry being consumed. | |
int | header_size |
The size of the header computed for this packet. | |
int | accumulated_payload_bytes |
The number of payload bytes collected so far into the current packet. | |
int | sgl_entry_count |
The number of SGL entries used so far to represent the current packet. | |
uint8_t * | data_addr_ptr |
The current address in the payload buffer. | |
int | max_payload_bytes |
The maximum number of payload bytes that can be put into this packet. | |
Structure to store the current state of a packet being constructed. Its purpose is to allow for the suspension of the creation of a packet if a pool from which items need to be allocated is empty. A state object is passed in to CdiPayloadInit() prior to calls to CdiPayloadParseCDIPacket() for a given payload.
anonymous enum |
The state of the packetizer so that CdiPayloadPacketizerPacketGet()'s progress on a given packet can be suspended for lack of resources and resumed in a subsequent call.
enum { ... } CdiPacketizerState::state |
The state of the packetizer so that CdiPayloadPacketizerPacketGet()'s progress on a given packet can be suspended for lack of resources and resumed in a subsequent call.