Jump to main content

##

# TCPIP_HTTP_NET_ConnectionDataBufferSizeGet Function

## C

    uint16_t TCPIP_HTTP_NET_ConnectionDataBufferSizeGet(
        TCPIP_HTTP_NET_CONN_HANDLE connHandle
    );

## Description

This function returns the size of the HTTP connection internal data buffer.

## Preconditions

None.

## Parameters

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

## Returns

- Size of the connection's general purpose data buffer.

## Remarks

This is the parameter that was used for HTTP initialization in TCPIP_HTTP_NET_MODULE_CONFIG::dataLen.

## Example

    // Read a name
    uint8_t* httpDataBuff = TCPIP_HTTP_NET_ConnectionDataBufferGet(connHandle);
    uint16_t httpDataLen = TCPIP_HTTP_NET_ConnectionDataBufferSizeGet(connHandle);
    if(TCPIP_HTTP_NET_ConnectionPostNameRead(connHandle, httpDataBuff, httpDataLen) == TCPIP_HTTP_NET_READ_INCOMPLETE)
    {
        return TCPIP_HTTP_NET_IO_RES_NEED_DATA;
    }