DcmSCPPool please add a setConfig method

All other questions regarding DCMTK

Moderator: Moderator Team

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

DcmSCPPool please add a setConfig method

#1 Post by martinrame »

I'm using DcmSCPPool and found it has a getConfig method, I understand it returns the DcmSCPConfig instance of the DcmThreadSCP instance, am I right?.

If this is true, I would like to set a custom DcmSCPConfig and can't find a method to do this.

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

Re: DcmSCPPool please add a setConfig method

#2 Post by Michael Onken »

Hi,

note that getConfig() returns a reference to the configuration so it can be used for setting values:

Code: Select all

   /** Return handle to the SCP configuration that is used to configure how to
   *  handle incoming associations. For the pool, e.g. by providing settings
   *  for TCP connection timeout, and for the workers, e.g. by configuration
   *  presentation contexts and the like.
   *  @return The SCP configuration(s).
   */
  virtual DcmSCPConfig& getConfig();
Best,
Michael

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest