Search found 7 matches
- Fri, 2017-04-07, 21:28
- Forum: DCMTK - General
- Topic: Graceful termination of DcmSCP::listen()
- Replies: 4
- Views: 4178
Re: Graceful termination of DcmSCP::listen()
dcmtk361\dcmnet\libsrc\assoc.cc Inside ASC_receiveAssociation(), I modified the if (cond.bad()) line that evaluates true when the timer elapses and cond becomes equal to DUL_NOASSOCIATIONREQUEST, which the calling function waitForAssociationRQ treats as a EC_Normal. The special treatment of DUL_NOAS...
- Thu, 2017-04-06, 20:35
- Forum: DCMTK - General
- Topic: Graceful termination of DcmSCP::listen()
- Replies: 4
- Views: 4178
Re: Graceful termination of DcmSCP::listen()
I'm all set for now.
I made the below changes near line 1782 of ASC_receiveAssociation() of dcmtk361 to achieve the desired behavior.
I made the below changes near line 1782 of ASC_receiveAssociation() of dcmtk361 to achieve the desired behavior.
Code: Select all
if (cond.bad())
{
ASC_destroyAssociationParameters(¶ms);
free(*assoc);
*assoc = NULL;
return cond;
}
- Tue, 2017-04-04, 15:37
- Forum: DCMTK - General
- Topic: Graceful termination of DcmSCP::listen()
- Replies: 4
- Views: 4178
Graceful termination of DcmSCP::listen()
I'm trying to cause a graceful termination of DcmSCP::listen() by overriding and altering the return value of stopAfterCurrentAssociation from somewhere outside. Before I enter listen(), I call setConnectionBlockingMode(DUL_NOBLOCK); setConnectionTimeout(2); This causes while( cond.good() &&...
- Thu, 2017-01-19, 17:36
- Forum: DCMTK - General
- Topic: ImagesInSeries tag
- Replies: 3
- Views: 3255
Re: ImagesInSeries tag
Thank you Michael. I like your first solution. Until now, I did not know that FIND works down to QueryRetrieveLevel=IMAGE. When I tried this, the server replied with a list of images: findscu -S -aet MY_PC -aec REMOTE_PC REMOTE 12345 -k QueryRetrieveLevel=IMAGE -k PatientName=Patient1 -k StudyInstan...
- Wed, 2017-01-18, 17:15
- Forum: DCMTK - General
- Topic: ImagesInSeries tag
- Replies: 3
- Views: 3255
ImagesInSeries tag
I am implementing a DICOM move command using DcmSCU with code similar to http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_DcmSCU together with DcmSCP listen function. I need a progress bar so that when the number of images become large, the user can tell what percentage have already been t...
- Fri, 2016-08-26, 18:18
- Forum: DCMTK - General
- Topic: DB_lseek
- Replies: 3
- Views: 4048
Re: DB_lseek
Dear J. Riesmeier:
Thank you for the quick reply.
I'm trying to access the database through index.dat.
If DB_lseek is only for error checking, is there a
better function I should be using to read an
arbitrary element of the database?
Thank you for the quick reply.
I'm trying to access the database through index.dat.
If DB_lseek is only for error checking, is there a
better function I should be using to read an
arbitrary element of the database?
- Fri, 2016-08-26, 17:04
- Forum: DCMTK - General
- Topic: DB_lseek
- Replies: 3
- Views: 4048
DB_lseek
Hi. I'm new to dcmtk361.
In dcmqrdbi.cc function DB_IdxAdd, there is a call to
[481] DB_lseek (phandle -> pidx, (long) SIZEOF_STUDYDESC, SEEK_SET) ;
but the return value pos is not used. And all 3 parameters are by values.
So, what is the purpose of this function?
In dcmqrdbi.cc function DB_IdxAdd, there is a call to
[481] DB_lseek (phandle -> pidx, (long) SIZEOF_STUDYDESC, SEEK_SET) ;
but the return value pos is not used. And all 3 parameters are by values.
So, what is the purpose of this function?