本文整理汇总了C++中PHTTP_BMO_REQ_OBJECT::Reset方法的典型用法代码示例。如果您正苦于以下问题:C++ PHTTP_BMO_REQ_OBJECT::Reset方法的具体用法?C++ PHTTP_BMO_REQ_OBJECT::Reset怎么用?C++ PHTTP_BMO_REQ_OBJECT::Reset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHTTP_BMO_REQ_OBJECT
的用法示例。
在下文中一共展示了PHTTP_BMO_REQ_OBJECT::Reset方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AnscFreeMemory
ANSC_STATUS
HttpBmoReqRemove
(
ANSC_HANDLE hThisObject
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PHTTP_BMO_REQ_OBJECT pMyObject = (PHTTP_BMO_REQ_OBJECT)hThisObject;
PHTTP_CGI_INTERFACE pCgiIf = (PHTTP_CGI_INTERFACE )pMyObject->hCgiIf;
PHTTP_RCP_INTERFACE pRcpIf = (PHTTP_RCP_INTERFACE )pMyObject->hRcpIf;
pMyObject->Reset((ANSC_HANDLE)pMyObject);
if ( pCgiIf )
{
AnscFreeMemory(pCgiIf);
}
if ( pRcpIf )
{
AnscFreeMemory(pRcpIf);
}
if ( pMyObject->RcpDpad )
{
AnscFreeMemory(pMyObject->RcpDpad);
}
HttpBmoRemove((ANSC_HANDLE)pMyObject);
return ANSC_STATUS_SUCCESS;
}
示例2: AnscSListPushEntry
ANSC_STATUS
HttpSpoReleaseBmoReq
(
ANSC_HANDLE hThisObject,
ANSC_HANDLE hBmoReq
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PHTTP_SIMPLE_PROXY_OBJECT pMyObject = (PHTTP_SIMPLE_PROXY_OBJECT )hThisObject;
PHTTP_SIMPLE_PROXY_PROPERTY pProperty = (PHTTP_SIMPLE_PROXY_PROPERTY)&pMyObject->Property;
PHTTP_BMO_REQ_OBJECT pBmoReq = (PHTTP_BMO_REQ_OBJECT )hBmoReq;
pBmoReq->Reset((ANSC_HANDLE)pBmoReq);
if ( pMyObject->ProxyMode & HTTP_SPO_MODE_COMPACT )
{
pBmoReq->Remove((ANSC_HANDLE)pBmoReq);
}
else
{
AnscAcquireLock (&pMyObject->BmoReqSListLock);
AnscSListPushEntry(&pMyObject->BmoReqSList, &pBmoReq->Linkage);
AnscReleaseLock (&pMyObject->BmoReqSListLock);
}
return ANSC_STATUS_SUCCESS;
}