Indicates whether a connection has been established. This function is available in the PACS Imaging Toolkit.
L_LTDIC_API L_BOOL L_DicomIsConnected(hNet)
A DICOM Network handle. This is the handle created by calling L_DicomCreateNet.
|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.
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);
MessageBox(NULL, TEXT("disconnected"), TEXT("Notice"), MB_OK);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries