Hi All,
I am using ASC_requestAssociation for opening an associations with SCP .My code Looks like this
ASC_initializeNetwork(NET_REQUESTOR, 0, 0, &mDcmtkNetwork);
DUL_BLOCKOPTIONS block = DUL_NOBLOCK;
// Request the SCP to open an association
ASC_requestAssociation( mDcmtkNetwork,params, &mAssociation,NULL,NULL,block,0);
IF my SCP is not UP , It still waits for 1 second to respond the status.
I want to respond immediately is SCP is NOT UP.
Please suggest me any other option need to be done to active this.
ASC_requestAssociation Wait for 1 sec
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: ASC_requestAssociation Wait for 1 sec
Hi,
which OS are you on?
I am not sure about the solution (neither about the analysis), but you can please try to set the dcmConnectionTimeout (global mutex) to 0 before requesting the association? I.e. call
and tell me what happens.
Thanks,
Michael
which OS are you on?
I am not sure about the solution (neither about the analysis), but you can please try to set the dcmConnectionTimeout (global mutex) to 0 before requesting the association? I.e. call
Code: Select all
dcmConnectionTimeout.set(0);
Thanks,
Michael
-
- Posts: 10
- Joined: Tue, 2013-01-29, 12:11
Re: ASC_requestAssociation Wait for 1 sec
this works for me.
Thank you very much for the reply.
Thank you very much for the reply.
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: ASC_requestAssociation Wait for 1 sec
Great, I also added the connection timeout setting to the DcmSCU class (which you may consider for your project, by the way) in order to be more "visible" to library users. The setting should not be global in the future, but this requires some more better done -- later.
Best,
Michael
Best,
Michael
Who is online
Users browsing this forum: Bing [Bot] and 1 guest