#include "ltdic.h"
L_LTDIC_API L_BOOL L_DicomIsConnected(hNet)
Indicates whether a connection has been established. 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 | A connection has been established. |
FALSE | A connection has not been established. |
A connection is created by an SCU calling L_DicomConnect and the SCP responding by calling L_DicomAccept. If this has occurred successfully, this function will return TRUE. Otherwise, it will return FALSE.
For more information on creating a connection, refer to Creating a DICOM Network Connection.
Required DLLs and Libraries
Win32, x64, Linux.
This example displays the connection status of a connection.
L_INT DicomIsConnectedExample(HDICOMNET hNet)
{
if (L_DicomIsConnected(hNet) != FALSE)
MessageBox(NULL, TEXT("connected"), TEXT("Notice"), MB_OK);
else
MessageBox(NULL, TEXT("disconnected"), 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