DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2018-08-17, 20:15

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: DcmSCPPool
PostPosted: Mon, 2016-05-02, 06:55 
Offline

Joined: Thu, 2016-04-28, 16:28
Posts: 2
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 .


Top
 Profile  
 
 Post subject: Re: DcmSCPPool
PostPosted: Wed, 2016-05-04, 10:06 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1683
Location: Oldenburg, Germany
Hi,

did you try to configure, start and stop the pool like shown in dcmnet/tests/tpool.cc?
Mainly it is
Code:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group