Hi,
In the storeSCP application, we wait for an incoming association with:
ASC_receiveAssociation();
This seems to block any other execution of this thread until an association comes in. I'm on windows, is there some way to modify this function to allow processing of messages if they exist in the queue, instead of blocking everything else?
Thanks!
storeSCP and ASC_receiveAssociation();
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1461
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
If you check how ASC_receiveAssociation() is declared in dcmnet/assoc.h you will notice that this function accepts a number of optional parameters:
In the last two parameters can specify DUL_NOBLOCK and a timeout (in seconds), causing the function to return with an error code (DUL_NOASSOCIATIONREQUEST) if no association has been received before the timout expires.
Code: Select all
OFCondition
ASC_receiveAssociation(
T_ASC_Network * network,
T_ASC_Association ** association,
long maxReceivePDUSize,
void **associatePDU=NULL,
unsigned long *associatePDUlength=NULL,
OFBool useSecureLayer=OFFalse,
DUL_BLOCKOPTIONS block=DUL_BLOCK,
int timeout=0);
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests