|
@@ -465,70 +465,6 @@ public:
|
|
|
return Error;
|
|
|
}
|
|
|
|
|
|
- ErrorCodeEnum CrossTermInvokeInfo(ScannerService_CrossTermInvokeInfo_Info &Info)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Info);
|
|
|
- auto ret = pFunc->OnewayCall(ScannerService_Method_CrossTermInvokeInfo, ScannerService_MethodSignature_CrossTermInvokeInfo, Buf, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum CrossTermCall(ScannerService_CrossTermCall_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->AsyncRequest(ScannerService_Method_CrossTermCall, ScannerService_MethodSignature_CrossTermCall, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(ScannerService_CrossTermCall_Req &Req, ScannerService_CrossTermCall_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(ScannerService_CrossTermCall_Req &Req, ScannerService_CrossTermCall_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(ScannerService_CrossTermCall_Req &Req, ScannerService_CrossTermCall_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- CSimpleString str;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
-
|
|
|
ErrorCodeEnum GetDevInfo(ScannerService_GetDevInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
{
|
|
|
CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|