本文整理汇总了C++中CNodeConManager::lAddMsgBuffer方法的典型用法代码示例。如果您正苦于以下问题:C++ CNodeConManager::lAddMsgBuffer方法的具体用法?C++ CNodeConManager::lAddMsgBuffer怎么用?C++ CNodeConManager::lAddMsgBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CNodeConManager
的用法示例。
在下文中一共展示了CNodeConManager::lAddMsgBuffer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DILJ_ManageMsgBuf
/**
* \brief Manages the target client buffer list. Call this function to open a data channel to receive messages.
* \req RSI_26_004 - DILJ1939_ManageMsgBuf
* \param[in] bAction When MSGBUF_ADD, adds pBufObj to the target message buffer list. Removes when MSGBUF_CLEAR.
* \param[in] ClientID Client ID
* \param[in] pBufObj Interface to message buffer object.
* \return S_OK if successful, else S_FALSE.
* \note At present maximum number of entries in the list is kept as 8.
*
* Manages the target client buffer list. Call this function to open a data channel to receive messages.
*/
USAGEMODE HRESULT DILJ_ManageMsgBuf(BYTE bAction, DWORD dwClientID,
CBaseMsgBufVSE* pBufObj)
{
HRESULT hResult = INVALID_PARAM;
if (pBufObj != NULL)
{
CNodeConManager* pConManager =
CNetworkMgmt::ouGetNWManagementObj().pouGetConMagrObj(dwClientID);
if (pConManager != NULL)
{
if (bAction == MSGBUF_ADD)
{
pConManager->lAddMsgBuffer(pBufObj);
}
else if (bAction == MSGBUF_CLEAR)
{
pConManager->vClearMsgBuffer(pBufObj);
}
hResult = S_OK;
}
else
{
hResult = ERROR_NOCLIENT;
}
}
return hResult;
}