The following steps provide the basic information required to create an SCU:
- Initialize the DICOM DLL by calling DicomNet.Startup. This must be done before any DICOM Network Operations methods are called. Please note that this only needs to be called once for each application.
- Create the DICOM Network object by instantiating the DicomNet class.
- To connect to an SCP, call DicomNet.Connect. This will generate a call to the DicomNet.OnAccept method on the SCP to let the SCP know that a connection request has been received.
- The SCP should respond by calling DicomNet.Accept. This will generate a call to DicomNet.OnConnect on the SCU. At this time the DICOM Network connection has been established.
- 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.
- Create the DICOM Associate object by instantiating the DicomAssociate class.
- Initialize the newly created DICOM Associate object by calling DicomAssociate.Default, or set the object using the following class members:
DicomAssociate.ApplicationContextName
DicomAssociate.SetPresentationContextID
DicomAssociate.SetAsynchronousOperations
DicomAssociate.ImplementationVersionName
DicomAssociate.SetUserInformation
DicomAssociate.SetExtendedData
- To connect to an SCP, call DicomNet.SendAssociateRequest. This will generate a call to DicomNet.OnReceiveAssociateRequest on the SCP to let the SCP know an associate connection request has been received.
- The SCP may accept or reject the request and respond by calling DicomNet.SendAssociateAccept or DicomNet.SendAssociateReject. This will generate a call to DicomNet.OnReceiveAssociateAccept or DicomNet.OnReceiveAssociateReject. If DicomNet.OnReceiveAssociateAccept is called, the DICOM Associate Connection has been established.