storescu- Information about transfer?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
hans
Posts: 10
Joined: Sun, 2005-10-30, 14:57

storescu- Information about transfer?

#1 Post by hans »

Hello!

I use storescu to send images within my software. But i would like to have in my software an information about the advance of the transfer. Does anybody knows how it is possible to manage this.

Thank you for your help!

Hans

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

This is not possible if you just call the storescu executable binary. If you directly call the Storage Service Class SCU as a function inside your own code (function DIMSE_storeUser, which is also used inside storescu), you can pass a pointer to a callback function which is called once for each PDU that is transferred to the remote SCP. This still requires your code to do a little computation (read the PDU size and the dataset size and determine the number of PDUs that will be needed for a complete transfer), but can be used for a reasonable "progress bar" or other progess indicator.

hans
Posts: 10
Joined: Sun, 2005-10-30, 14:57

progress bar + storescu

#3 Post by hans »

Hello!

thank you very much for your answer, i'll try to have a look on this function, modify it and then use it in my own application.

Hans

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest