Creating an SCU

The following steps provide the basic information required to create an SCU:

image\sqrblit.gif Create the DICOM Network handle by calling L_DicomCreateNet.

image\sqrblit.gif Initialize the DICOM Network handle by calling L_DicomStartUp. This must be done before any DICOM Network Operations functions are called.. Please note that this only needs to be called once for each application.

image\sqrblit.gif Call L_DicomSetCallback to set the callback functions you wish to use.

image\sqrblit.gif To connect to an SCP, call L_DicomConnect. This will generate a call to the ACCEPTCALLBACK function on the SCP to let the SCP know that a connection request has been received.

image\sqrblit.gif The SCP should respond by calling L_DicomAccept. This will generate a call to the CONNECTCALLBACK on the SCU. At this time the DICOM Network connection has been established.

image\sqrblit.gif Establish a security layer. For more information on security layers, refer to Adding Security to a DICOM Connection and Adding TLS Security to a DICOM Connection.

image\sqrblit.gif Create the DICOM Associate handle by calling L_DicomCreateAssociate.

image\sqrblit.gif Initialize the newly created DICOM Associate handle by calling L_DicomDefaultAssociate, or set the new DICOM Associate handle using the following functions:

L_DicomSetRequest

L_DicomSetVersion

L_DicomSetCalled

L_DicomSetCalling

L_DicomSetApplication

L_DicomSetPresentation

L_DicomSetResult

L_DicomSetAbstract

L_DicomSetTransfer

L_DicomSetMaxLength

L_DicomSetImplementClass

L_DicomSetAsyncOperations

L_DicomSetRoleSelect

L_DicomSetImplementVersion

L_DicomSetUserInfo

L_DicomSetExtended

L_DicomAddPresentation

L_DicomAddTransfer

image\sqrblit.gif To connect to an SCP, call L_DicomSendAssociateRequest. This will generate a call to the RECEIVEASSOCIATEREQUESTCALLBACK on the SCP to let the SCP know an associate connection request has been received.

image\sqrblit.gif The SCP may accept or reject the request and respond by calling L_DicomSendAssociateAccept or L_DicomSendAssociateReject. This will generate a call to the RECEIVEASSOCIATEACCEPTCALLBACK or the RECEIVEASSOCIATEREJECTCALLBACK. If RECEIVEASSOCIATEACCEPTCALLBACK is called, the DICOM Associate Connection has been established.