L_DicomIsConnected

#include "ltdic.h"

L_BOOL EXT_FUNCTION L_DicomIsConnected(hNet)

HDICOMNET hNet;

/* a DICOM Network handle */

Indicates whether a connection has been established. This function is available in the Medical Suite Toolkit.

Parameter

Description

hNet

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

Returns

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

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomConnect, L_DicomAccept, L_DicomCreateNet, L_DicomStartUp

Topics:

Working with DICOM Network Connections

 

Creating a DICOM Network Connection

 

Creating an DICOM Associate Connection

Example

/* This example displays the connection status of a connection */

L_VOID Test(HDICOMNET hNet)
{
   if (L_DicomIsConnected(hNet) != FALSE)
   {
      MessageBox(NULL, "connected", "Notice", MB_OK);
   }
   else
   {
      MessageBox(NULL, "disconnected", "Notice", MB_OK);
   }
}