DcmSCP : Access to Association

All other questions regarding DCMTK

Moderator: Moderator Team

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

DcmSCP : Access to Association

#1 Post by kattabomane »

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: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: DcmSCP : Access to Association

#2 Post by Michael Onken »

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: 43
Joined: Tue, 2005-02-01, 22:53

Re: DcmSCP : Access to Association

#3 Post by kattabomane »

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: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: DcmSCP : Access to Association

#4 Post by Michael Onken »

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: 43
Joined: Tue, 2005-02-01, 22:53

Re: DcmSCP : Access to Association

#5 Post by kattabomane »

Many thanks for these explanations.

K.

Post Reply

Who is online

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