L_DicomGetAssociate

#include "ltdic.h"

L_LTDIC_API HDICOMPDU L_DicomGetAssociate(hNet)

Returns the DICOM Associate handle for the specified DICOM Network handle. This function is available in the PACS Imaging Toolkit.

Parameters

HDICOMNET hNet

A DICOM Network handle.

Returns

The DICOM Associate handle associated with the specified DICOM Network handle.

Comments

A DICOM Association must be established between an SCU and an SCP before any DICOM messages or data can be transmitted between them. For more information on creating a DICOM Association, refer to Creating a DICOM Association.

When the DICOM Association is no longer needed, it should be ended. For more information, refer to Closing a DICOM Associate Connection.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Topics

Example

This example displays the called Application Entity Title of the associated connection

L_INT DicomGetAssociateExample(HDICOMNET hNet) 
{ 
   HDICOMPDU hAssociate; 
 
   L_TCHAR szCalled[PDU_MAX_TITLE_SIZE+1]; 
   hAssociate = L_DicomGetAssociate(hNet); 
 
   if(hAssociate) 
   { 
      L_DicomGetCalled(hAssociate, szCalled, PDU_MAX_TITLE_SIZE+1); 
      MessageBox(NULL, szCalled, TEXT("Notice"), MB_OK); 
      return DICOM_SUCCESS; 
   } 
   return DICOM_ERROR_PARAMETER; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help