L_DicomIsConnected

#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.

Parameters

HDICOMNET hNet

A DICOM Network handle. This is the handle created by calling L_DicomCreateNet.

Returns

Value Meaning
TRUE A connection has been established.
FALSE A connection has not been established.

Comments

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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

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 Version 20.0.2019.9.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help