L_DicomGetAssociate

Summary

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

Syntax

#include "ltdic.h"

L_LTDIC_API HDICOMPDU L_DicomGetAssociate(hNet)

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

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.