DcmSCP : Access to Association

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kattabomane
Posts: 41
Joined: Tue, 2005-02-01, 22:53

DcmSCP : Access to Association

#1 Post by kattabomane » Sun, 2018-07-29, 09:20

Hello,
I am using DcmSCP as base class for my class.
The variable m_assoc is declared as private.
When overriding the function virtual OFCondition processAssociationRQ(), i don't have accesss to the current incoming association.
Is there any proper way to get access to the association ?
Thanks for your help.
K.

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

Re: DcmSCP : Access to Association

#2 Post by Michael Onken » Mon, 2018-08-06, 09:00

Hi,

there is no way to get access to the association as the class is designed right now.

What you want to do with it? Maybe there is a different way to reach your goals.

Best,
Michael

kattabomane
Posts: 41
Joined: Tue, 2005-02-01, 22:53

Re: DcmSCP : Access to Association

#3 Post by kattabomane » Wed, 2018-08-15, 19:55

Hello,

I would like to check incoming AE and Address and reject the association if not known already.

I have seen these virtual functions but i would like to check the pair AE and Address at once as overiding processAssociationRQ.

Code: Select all

checkCalledAETitleAccepted
checkCallingAETitleAccepted
checkCallingHostAccepted
Is there any other way ?

Thanks for your help.
K.

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

Re: DcmSCP : Access to Association

#4 Post by Michael Onken » Thu, 2018-08-16, 11:06

Hi,

no there is no way. You have to override all three methods with your own implementation. scp.cc first calls the host method, then Calling and finally Called AE Title method.

In your own re-implemented version of the three checks, you should store the host and Calling AE Title from the first two calls, and then you can check their combination together in the Called AE Title checking method.

Best,
Michael

kattabomane
Posts: 41
Joined: Tue, 2005-02-01, 22:53

Re: DcmSCP : Access to Association

#5 Post by kattabomane » Sat, 2018-08-18, 23:23

Many thanks for these explanations.

K.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest