I want to use DCMTK's storescp (or perhaps dcmrecv) to receive DICOM files. I want to give each potential sender a different AE_Title that they should send to. Then I want to be able to identify the sender because I will see which AE_Title the DICOM was received on. How to do this? It looks like the dcmrecv with the -uca option might be the way, but I don't see how to tell which AE Title was used by the sender.
Each DICOM Storage SCU identifies itself with an AE Title (so-called Calling AE Title), which is used by DCMTK's storescp to specify the value of the Source Application Entity Title (0002,0016) Attribute in the File Meta Information of the created DICOM files.
What you were asking for is the Called AE Title.