CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This header file contains definitions of types needed for the reordering of payloads. More...
Go to the source code of this file.
Functions | |
RxPayloadState * | RxReorderPayloadStateGet (CdiEndpointState *endpoint_ptr, CdiPoolHandle rx_payload_state_pool_handle, int sequence_num) |
void | RxReorderPayloadResetState (RxPayloadState *payload_state_ptr, int payload_num) |
void | RxReorderPayloadError (CdiEndpointState *endpoint_ptr, RxPayloadState *payload_state_ptr) |
Set payload in an error state and free associated payload resources (but not payload state). | |
bool | RxReorderPayloadIsStale (CdiEndpointState *endpoint_ptr, RxPayloadState *payload_state_ptr) |
Determine if a payload has not received any packets within the packet out of order window. See CDI_MAX_RX_PACKET_OUT_OF_ORDER_WINDOW. | |
void | RxReorderPayloadSendPayload (CdiEndpointState *endpoint_ptr, RxPayloadState *send_payload_state_ptr) |
void | RxReorderPayloadSendReadyPayloads (CdiEndpointState *endpoint_ptr) |
void | RxReorderPayloadSeekFirstPayload (CdiEndpointState *endpoint_ptr) |
This header file contains definitions of types needed for the reordering of payloads.
void RxReorderPayloadError | ( | CdiEndpointState * | endpoint_ptr, |
RxPayloadState * | payload_state_ptr ) |
Set payload in an error state and free associated payload resources (but not payload state).
endpoint_ptr | Pointer to endpoint state structure. |
payload_state_ptr | Pointer to the payload state. |
bool RxReorderPayloadIsStale | ( | CdiEndpointState * | endpoint_ptr, |
RxPayloadState * | payload_state_ptr ) |
Determine if a payload has not received any packets within the packet out of order window. See CDI_MAX_RX_PACKET_OUT_OF_ORDER_WINDOW.
endpoint_ptr | Pointer to endpoint state structure. |
payload_state_ptr | Pointer to the payload state. |
void RxReorderPayloadResetState | ( | RxPayloadState * | payload_state_ptr, |
int | payload_num ) |
Reset payload state data.
payload_state_ptr | Pointer to payload state data to reset. |
payload_num | Payload number to set. |
void RxReorderPayloadSeekFirstPayload | ( | CdiEndpointState * | endpoint_ptr | ) |
Advance the current Rx reorder window index to the first entry that contains a payload.
endpoint_ptr | Pointer to endpoint state structure. |
void RxReorderPayloadSendPayload | ( | CdiEndpointState * | endpoint_ptr, |
RxPayloadState * | send_payload_state_ptr ) |
Send the payload on to the next stage because it is complete or determined to be in error.
endpoint_ptr | Pointer to endpoint state structure. |
send_payload_state_ptr | Pointer to the payload state for the completed payload. |
void RxReorderPayloadSendReadyPayloads | ( | CdiEndpointState * | endpoint_ptr | ) |
Starting at the beginning of the payload state list, sends any payloads that are complete or in an error state.
endpoint_ptr | Pointer to endpoint state structure. |
RxPayloadState * RxReorderPayloadStateGet | ( | CdiEndpointState * | endpoint_ptr, |
CdiPoolHandle | rx_payload_state_pool_handle, | ||
int | sequence_num ) |
Get pointer to Rx payload state structure for the specified payload sequence number. If one does not already exist then a new one is created.
endpoint_ptr | Pointer to endpoint state structure. |
rx_payload_state_pool_handle | Handle of Rx payload state pool to use when allocating new payload state structures. |
sequence_num | Payload sequence number. |