LEADTOOLS DICOM C DLL Help > Function References > 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
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Win32, x64, Linux.
See Also
Functions: |
RECEIVEASSOCIATEACCEPTCALLBACK, L_DicomCreateAssociate, L_DicomSendAssociateRequest, L_DicomSendAssociateReject, L_DicomSendReleaseRequest |
Topics: |
|
|
|
|
|
|
|
|
|
|
Example
For an example, refer to L_DicomListen.