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 .
DcmSCPPool
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: DcmSCPPool
Hi,
did you try to configure, start and stop the pool like shown in dcmnet/tests/tpool.cc?
Mainly it is
Best,
Michael
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
Michael
Who is online
Users browsing this forum: No registered users and 1 guest