We are using the following for receiving a command and processing c find requests.
Code: Select all
...
while(cond.good())
{
cond = DIMSE_receivedCommand(assoc, DIMSE_BLOCKING, 0, & presID, &msg, NULL);
if(cond.good()
{
....
}
}
In order to avoid this sort of blocking, can i set a tiemout like the following :
cond = DIMSE_receivedCommand(assoc, DIMSE_BLOCKING, 5000, & presID, &msg, NULL);
Thanks for your help