Jump to main content

##

# TCPIP_HTTP_CurrentConnectionCallbackPosSet Function

## C

    void TCPIP_HTTP_CurrentConnectionCallbackPosSet(
        HTTP_CONN_HANDLE connHandle,
        uint32_t callbackPos
    );

## Description

This function will set the current value of the callback position indicator for the HTTP connection identified by connHandle. The callback position indicator is used in the processing of the HTTP dynamic variables. When set to a value != 0, it indicates to the HTTP server that the application has more pending processing that needs to be done.

## Preconditions

None.

## Parameters

Parameters | Description
--- | ---
connHandle | HTTP connection handle.
callbackPos | New connection callback position value.

## Returns

None.

## Remarks

None.

## Example

    void TCPIP_HTTP_Print_builddate(HTTP_CONN_HANDLE connHandle)
    {
        TCP_SOCKET sktHTTP;
        sktHTTP = TCPIP_HTTP_CurrentConnectionSocketGet(connHandle);

        TCPIP_HTTP_CurrentConnectionCallbackPosSet(connHandle, 0x01);
        if(TCPIP_TCP_PutIsReady(sktHTTP) < strlen((const char*)__DATE__" "__TIME__))
        { // Don't have room to output build date and time
            return;
        }
        TCPIP_HTTP_CurrentConnectionCallbackPosSet(connHandle, 0x00);
        TCPIP_TCP_StringPut(sktHTTP, (const void*)__DATE__" "__TIME__);
    }