DcmSCPPool

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
rohitp
Posts: 2
Joined: Thu, 2016-04-28, 16:28

DcmSCPPool

#1 Post by rohitp »

Hi ,

I'm using DcmSCPPool pool class for my SCP implementation .
We want to stop the listening thread on previous AETittle and Port and start the Pool again on new Port and new AETittle .

How can we achieve this ?

We have derived the DcmSCPPool

class DcmScpPool : public DcmSCPPool<DcmtkSCP>,public OFThread
{}

class DcmtkSCP : public DcmThreadSCP
{};


Any help is appreciated .

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

Re: DcmSCPPool

#2 Post by Michael Onken »

Hi,

did you try to configure, start and stop the pool like shown in dcmnet/tests/tpool.cc?
Mainly it is

Code: Select all

DcmSCPConfig& config = pool.getConfig();
config.setAETitle("PoolTestSCP");
config.setPort(11112);
config.setConnectionBlockingMode(DUL_NOBLOCK);
...
pool.start()
... 
// Request shutdown.
pool.stopAfterCurrentAssociations();
pool.join();
// then reconfigure and start() again
Best,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest