If I use the blocking connection mode, then the method DcmSCP::listen() never returns, so I have to forcefully terminate the thread.
Alternatively, if I use the non-blocking connection mode, then DcmSCP::listen() does return after a timeout is elapsed, but it does not seem possible to call it in a loop like this:
Code: Select all
while(continueRunning())
{
scp->listen();
}
Is there a way to shutdown the SCP?
I am using the 20121102 snapshot on Windows and my GUI thread is separate from the thread that runs the SCP.
Thanks,
Marcus