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.

注意
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.
参数
ctx[IN] TLS connection handle
返回值
Numberof bytes of application data that can be read.