#include "ltdic.h"
L_BOOL LDicomAssociate::IsAsyncOperations(L_VOID)
Determines whether Asynchronous Operations are supported.
Value | Meaning |
---|---|
TRUE | The DICOM Associate supports Asynchronous Operations. |
FALSE | The DICOM Associate does not support Asynchronous Operations. |
If a DICOM Associate connection does not support Asynchronous Operations, then an Application Entity must wait for the response from one message before sending another. If Asynchronous Operations are supported, multiple messages may be sent without waiting for a response. The number of messages that may be sent is set using LDicomAssociate::SetAsyncOperations.
To determine the number of Asynchronous Operations that may be invoked without a response, call LDicomAssociate::GetInvokedOperations. To determine the number of operations that have been completed, call LDicomAssociate::GetPerformedOperations.
Required DLLs and Libraries
Win32, x64
L_INT LDicomAssociate_IsAsyncOperationsExample(LDicomAssociate *m_pDicomAssociate)
{
L_INT nRet;
CString cStr;
//...Assume associate object has been created
if (m_pDicomAssociate->IsAsyncOperations() )
{
//get the operations counts
L_UINT16 lInvoked = m_pDicomAssociate->GetInvokedOperations();
L_UINT16 lPerformed = m_pDicomAssociate->GetPerformedOperations();
//now disable it
nRet = m_pDicomAssociate->SetAsyncOperations( FALSE, 0, 0);
if(nRet != DICOM_SUCCESS)
return nRet;
cStr.Format(TEXT("AsyncOperations Disabled:\n\tInvoked[%d]\n\tPerformed[%d]"), lInvoked, lPerformed);
AfxMessageBox(cStr);
}
else
{
nRet = m_pDicomAssociate->SetAsyncOperations( TRUE, 0, 0);
if(nRet != DICOM_SUCCESS)
return nRet;
AfxMessageBox(TEXT("AsyncOperations enabled"));
}
return DICOM_SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document