DcmSCPPool, stopAfterCurrentAssociations not working

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Michael Onken
DCMTK Developer
Posts: 1805
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

DcmSCPPool, stopAfterCurrentAssociations not working

#1 Post by Michael Onken » Wed, 2019-06-05, 13:42

That sounds weird.

Did you try just using the first parameter in createDirectory and leave the second parameter empty ("")?
Of course the first parameter should be the value that you would also provide to System::IO::Directory::CreateDirectory().

Best regards,
Michael

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

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

#2 Post by Michael Onken » Thu, 2021-02-18, 16:44

Hi,

do you have non-blocking mode configured? If I remember correctly, it is required to stop after the association.

Code: Select all

DcmSCPConfig& config = pool.getConfig();
config.setConnectionBlockingMode(DUL_NOBLOCK);
...
A new top is started on the top left, there should be a button "New Topic".

Best regards,
Michael

renu.khorwal
Posts: 2
Joined: Tue, 2021-02-02, 13:46

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

#3 Post by renu.khorwal » Thu, 2021-02-18, 17:41

Hi Michael,

Thanks for the reply.
I am configuring it before starting ScpPool.

Code: Select all

   
    DicomScpThreadPool_C dcm_pool = new DicomScpThreadPool_C
    DcmSCPConfig& config = dcm_pool->getConfig();

    config.setAETitle(ae_title.toStdString());
    config.setPort(static_cast<unsigned short>(port));
    config.setConnectionBlockingMode(DUL_NOBLOCK);
    dcm_pool->start();
Thank you,
Renu

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

Re: DcmSCPPool, stopAfterCurrentAssociations not working

#4 Post by Michael Onken » Fri, 2021-02-19, 08:03

Hi Renu,

it's hard to tell what goes wrong.

Maybe you could compare your code to the one of dcmnet/tests/tpool.cc where some of the tests uses the stopAfterCurrentAssociation() option.

Best regards,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest