TCPIP_HTTP_CurrentConnectionCallbackPosGet Function
C
uint32_t TCPIP_HTTP_CurrentConnectionCallbackPosGet(
HTTP_CONN_HANDLE connHandle
);
Description
This function will return 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.
Preconditions
None.
Parameters
Parameters | Description |
---|---|
connHandle | HTTP connection handle. |
Returns
Callback position indicator for connection defined by connHandle.
Remarks
None.
Example
uint32_t callbackPos;
callbackPos = TCPIP_HTTP_CurrentConnectionCallbackPosGet(connHandle);
if(callbackPos == 0x00u)
callbackPos = (uint32_t)DDNSClient.Host.szRAM;
callbackPos = (uint32_t)TCPIP_TCP_StringPut(TCPIP_HTTP_CurrentConnectionSocketGet(connHandle), (uint8_t*)callbackPos);
if(*(uint8_t*)callbackPos == '0')
callbackPos = 0x00;
TCPIP_HTTP_CurrentConnectionCallbackPosSet(connHandle, callbackPos);