Echo-SCU time out

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ybu
Posts: 7
Joined: Tue, 2005-01-18, 20:19

Echo-SCU time out

#1 Post by ybu »

Hi,
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();
And change it to something like...

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;
}
Could someone please tell me how to do that? And/or if it's correct to do so.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest