openthread_sys

Function otTcpCommitReceive

Source
pub unsafe extern "C" fn otTcpCommitReceive(
    aEndpoint: *mut otTcpEndpoint,
    aNumBytes: usize,
    aFlags: u32,
) -> otError
Expand description

Informs the TCP stack that the application has finished processing @p aNumBytes bytes of data at the start of the receive buffer and that the TCP stack need not continue maintaining those bytes in the receive buffer.

@param[in] aEndpoint A pointer to the TCP endpoint structure representing the TCP endpoint on which to receive data. @param[in] aNumBytes The number of bytes consumed. @param[in] aFlags Flags specifying options for this operation (none yet).

@retval OT_ERROR_NONE Successfully completed the receive operation. @retval OT_ERROR_FAILED Failed to complete the receive operation.