Jump to main content

##

# TCPIP_HTTP_NET_ConnectionByteCountGet Function

## C

    uint32_t TCPIP_HTTP_NET_ConnectionByteCountGet(
        TCPIP_HTTP_NET_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

Parameters | Description
--- | ---
connHandle | HTTP connection handle.

## Returns

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

## Remarks

None.

## Example

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