DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
Implementation of DICOM SCP server pool. More...
Classes | |
struct | SCPWorker |
Helper class to use any class as an SCPWorker as long as it is a model of the SCP Thread Concept. More... | |
Public Member Functions | |
DcmSCPPool () | |
Default construct a DcmSCPPool object. | |
Private Member Functions | |
virtual BaseSCPWorker * | createSCPWorker () |
Create a worker to be used for handling a request. More... | |
Implementation of DICOM SCP server pool.
The pool waits for incoming TCP/IP connection requests, accepts them on TCP/IP level and hands the connection to a worker thread. The maximum number of worker threads, i.e. simultaneous connections, is configurable. The default is 5. At the moment, if no free worker slots are available, an incoming request is rejected with the error "local limit exceeded", i.e. those requests are not queued. This behaviour might change in the future.
SCP | the service class provider to be instantiated for each request, should follow the SCP Thread Concept. |
SCPPool | the base SCP pool class to use. Use this parameter if you want to use a different implementation (probably derived from DcmBaseSCPPool) as base class for implementing the SCP pool. |
BaseSCPWorker | the base SCP worker class to use. Use this parameter if you want to use a different implementation of the SCP worker, e.g. for using processes instead of threads or sharing a single thread for multiple workers. |
|
inlineprivatevirtual |
Create a worker to be used for handling a request.