dicom-rs
dicom-rs copied to clipboard
Store SCP
Hi, I made this quick example of a C-STORE SCP. Would be happy for comments.
needs some work to fill the proper File Meta Information before saving to disk
Thank you for this neat contribution! It has already helped me diagnose some issues in the
ulcrate.One thing that intrigues me here: is there something missing in the
AssociationServerabstraction that led you towards reading and writing PDUs on your own? It was originally pictured that SCPs would use either theul::associationmodule or something at a higher level of abstraction. It might be worth filling the gaps here rather than building the association logic from scratch.One thing I see is that while
PDataWriterexists,PDataReaderdoes not. And it would be useful here in order to accumulate the sequence of PData values. Just filed #216. If there are other pain points, I would love to know.
I am happy you found it useful. I just didn't know about the AssociationServer abstraction at that time, I just looked at some of the other examples.
I have been reiterating on the store SCP, but now that my branch is rebased, I will need to commandeer this with a new pull request. Your baseline is still very much appreciated!
#296