DcmThreadSCP

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
martinrame
Posts: 347
Joined: Mon, 2009-02-23, 19:57

DcmThreadSCP

#1 Post by martinrame »

Hi, I'm trying to understand how DcmThreadSCP works. I've updated an example based on DcmSCP by replacing DcmSCP class to DcmThreadSCP, it compiled and worked out of the box, by "worked" I mean it receives the images I send, but It looks like I cannot send two images simultaneously from two different modalities.

The Detailed description of this class says this:
Base class for implementing a DICOM Service Class Provider (SCP) that can serve as a worker in a thread pool, by offering functionality to run an association from an already accepted TCP/IP connection...
As it mentions a thead pool, how can I know how many threads are listening for associations?, is this quantity configurable?, is there a way to log the thread ID handling an association?.

P.S.: I've compiled it using dcmtk-3.6.1_20150629 on Mingw32 (Windows).

Regards,
Leonardo.

J. Riesmeier
DCMTK Developer
Posts: 2503
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DcmThreadSCP

#2 Post by J. Riesmeier »

As far as I understood, the DcmThreadSCP is the base class for an SCP that can serve as a worker in a thread pool, i.e. it does not implement the pool. This is where DcmSCPPool comes into play...

The test program in "dcmnet/tests/tpool.cc" might serve as an example.

martinrame
Posts: 347
Joined: Mon, 2009-02-23, 19:57

Re: DcmThreadSCP

#3 Post by martinrame »

Thank you very much Jörg for this answer, I'll try to implement it in my own SCP.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest