TCPIP_HTTP_NET_ConnectionStatusSet Function

C

void TCPIP_HTTP_NET_ConnectionStatusSet(
    TCPIP_HTTP_NET_CONN_HANDLE connHandle, 
    TCPIP_HTTP_NET_STATUS stat
);

Description

Allows write access to the HTTP status of the selected HTTP connection.

Preconditions

None.

Parameters

ParametersDescription
connHandleHTTP connection handle.
statnew TCPIP_HTTP_NET_STATUS enumeration value.

Returns

None.

Remarks

None.

Example

byteCount = TCPIP_HTTP_NET_ConnectionByteCountGet(connHandle);
int sktRxSize;

sktRxSize = TCPIP_HTTP_NET_ConnectionReadBufferSize(connHandle);

if(byteCount > sktRxSize)
{   // Configuration Failure
    // 302 Redirect will be returned
    TCPIP_HTTP_NET_ConnectionStatusSet(connHandle, TCPIP_HTTP_NET_STAT_REDIRECT);
}