Canceling C-STORE

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Bojan
Posts: 11
Joined: Mon, 2013-04-22, 09:52

Canceling C-STORE

#1 Post by Bojan »

Is there are way to cancel DIMSE_storeUser()? If sending take a long time and a user want to cancel it or close the application, how do I make DIMSE_storeUser return? If that's not possible, is there an alternative way to do C-STORE SCU which will allow this?

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Canceling C-STORE

#2 Post by Michael Onken »

Hi,

if the sending is very slow but is actually taking place (i.e. the receiver reads data packages but only very slow) then I do not see a way to cancel the transfer. You must do that yourself, e.g. by running the transfer in a separate thread or process. The code is not in DCMTK (however, a thread abstraction "OFThread" exists).

Best,
Michael

Bojan
Posts: 11
Joined: Mon, 2013-04-22, 09:52

Re: Canceling C-STORE

#3 Post by Bojan »

Understood. Thanks for the reply!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest