1.2.1.12.14 TCPIP_HTTP_CurrentConnectionDataBufferGet Function

C

uint8_t* TCPIP_HTTP_CurrentConnectionDataBufferGet(
    HTTP_CONN_HANDLE connHandle
);

Description

This function returns a pointer to the HTTP connection internal data buffer. This gives access to the application to the data that's stored in the HTTP connection buffer.

Preconditions

None.

Parameters

ParametersDescription
connHandleHTTP connection handle.

Returns

Pointer to the connection's general purpose data buffer.

Remarks

None.

Example

void TCPIP_HTTP_Print_cookiename(HTTP_CONN_HANDLE connHandle)
{
    const uint8_t *ptr;
    TCP_SOCKET sktHTTP;

    ptr = TCPIP_HTTP_ArgGet(TCPIP_HTTP_CurrentConnectionDataBufferGet(connHandle), (const uint8_t*)"name");
    sktHTTP = TCPIP_HTTP_CurrentConnectionSocketGet(connHandle);
    if(ptr)
        TCPIP_TCP_StringPut(sktHTTP, ptr);
    else
        TCPIP_TCP_StringPut(sktHTTP, (const uint8_t*)"not set");
}