L_DicomSendAssociateAccept

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomSendAssociateAccept(hNet, hPDU)

HDICOMNET hNet;

/* a DICOM Network handle */

HDICOMPDU hPDU;

/* a DICOM Association handle */

Sends an Associate Accept message to a connection. This function is available in the PACS Imaging Toolkit.

Parameter

Description

hNet

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

hPDU

A DICOM Association handle. This is the handle created by calling L_DicomCreateAssociate.

Returns

DICOMM_SUCCESS

The function was successful.

>0

An error occurred. Refer to Return Codes.

Comments

L_DicomSendAssociateAccept is sent by the SCP in response to an L_DicomSendAssociateRequest call placed by an SCU. It establishes the DICOM Association between an SCU and an SCP and generates a call to RECEIVEASSOCIATEACCEPTCALLBACK on the SCU. The SCU and SCP can now transmit DICOM messages and data.

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

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

Platforms

Win32, x64

See Also

Functions:

RECEIVEASSOCIATEACCEPTCALLBACK, L_DicomCreateAssociate, L_DicomSendAssociateRequest, L_DicomSendAssociateReject, L_DicomSendReleaseRequest

Topics:

Working with DICOM Network Connections

 

Working with DICOM Associate Connections

 

Creating a DICOM Associate Connection

 

Creating an SCP

 

Diagram of a Basic Client-Server Set-Up

 

Sending Messages

Example

For an example, refer to L_DicomListen.