openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetReadPendingBytes()

uint32_t HITLS_GetReadPendingBytes ( const HITLS_Ctx ctx)

Obtain the number of bytes of application data to be read from the current record from the HiTLS object.

Attention
When the HiTLS works in data packet transmission (DTLS), the HITLS_Read may copy part of the application packet because the input buffer is not large enough. This function is used to obtain the remaining size of the application packet. This is useful for transport over DTLS.
Parameters
ctx[IN] TLS connection handle
Return values
Numberof bytes of application data that can be read.