TCPIP_HTTP_CurrentConnectionByteCountGet Function

C

uint32_t TCPIP_HTTP_CurrentConnectionByteCountGet(
    HTTP_CONN_HANDLE connHandle
);

Description

This function returns the current value of the counter showing the number of bytes available to be read on the connection.

Preconditions

None.

Parameters

ParametersDescription
connHandleHTTP connection handle.

Returns

Current connection byte count, how many bytes have been read so far.

Remarks

None.

Example

switch(TCPIP_HTTP_CurrentConnectionPostSmGet(connHandle))
{
    case SM_CFG_SNMP_READ_NAME:
        // If all parameters have been read, end
        if(TCPIP_HTTP_CurrentConnectionByteCountGet(connHandle) == 0u)
        {
            return HTTP_IO_DONE;
        }
    .
    .
    .
}