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.
DcmSCP : Access to Association
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: DcmSCP : Access to Association
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
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
-
- Posts: 43
- Joined: Tue, 2005-02-01, 22:53
Re: DcmSCP : Access to Association
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.
Is there any other way ?
Thanks for your help.
K.
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
Thanks for your help.
K.
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: DcmSCP : Access to Association
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
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
-
- Posts: 43
- Joined: Tue, 2005-02-01, 22:53
Re: DcmSCP : Access to Association
Many thanks for these explanations.
K.
K.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest