Please note that while this example shows how an SCP can make decisions based on information presented to it, that information may not always be accurate; spoofing an IP address and/or AE title is feasible. Therefore, the end user should take the steps necessary to ensure they are operating within the confines of a secure network.
This example server implements Store SCP in order to demonstrate settings when an association is successfully established and DIMSE messages are received/sent. The StoreSCU example may be used to experiment with this test SCP using command line invocations similar to the following:
StoreSCU.exe -i mr-knee.dcm -h localhost -p 5555 -d SCP1 -s SCU99
StoreSCU.exe -i mr-knee.dcm -h localhost -p 5555 -d SCP99 -s SCU1
StoreSCU.exe -i mr-knee.dcm -h localhost -p 5555 -d JPEG2000_SCP -s SCU1
StoreSCU.exe -i mr-knee.dcm -h localhost -p 5555 -d SCP1 -s SCU1
Assembly: AssociationRejection (in AssociationRejection.exe) Version: DCF34 r12431 DCF_3_4_38_20200923 NetFramework
public class Program
Thetype exposes the following members.
Initializes a new instance of theclass
Main entry point for AssociationRejection.