I would like to set a time out when sending a dcmtk Echo-SCU command. This post is similar to viewtopic.php?t=443, sorry for the duplicate...
One solution should be to test the value of (*network)->timeout just after the line:
Code: Select all
// get global connection timeout
Sint32 connectTimeout = dcmConnectionTimeout.get();
Code: Select all
Sint32 connectTimeout = dcmConnectionTimeout.get();
if ( 0 == connectTimeout &&(*network)->timeout )
{
// we also check if the network has a time out set.
connectTimeout = (*network)->timeout;
}