#include "ltdic.h"
L_LTDIC_API L_BOOL L_DicomIsAssociated(hNet)
Indicates whether the specified connection has been associated. This function is available in the PACS Imaging Toolkit.
A DICOM Network handle. This is the handle created by calling L_DicomCreateNet.
Value | Meaning |
---|---|
TRUE | The specified connection has been associated. |
FALSE | The specified connection has not been associated. |
A connection has been associated if the SCP of the connection has called L_DicomSendAssociateAccept and the RECEIVEASSOCIATEACCEPTCALLBACK was generated on the SCU of the connection. If this exchange has occurred, this function will return TRUE, otherwise it will return FALSE.
For more information on creating an associated connection, refer to Creating a DICOM Association.
Required DLLs and Libraries
Win32, x64, Linux.
This example displays the association status of a connection.
L_INT DicomIsAssociatedExample(HDICOMNET hNet)
{
if (L_DicomIsAssociated(hNet) != FALSE)
MessageBox(NULL, TEXT("associated"), TEXT("Notice"), MB_OK);
else
MessageBox(NULL, TEXT("not associate"), TEXT("Notice"), MB_OK);
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