Are simultaneous associations supported?
Moderator: Moderator Team
Are simultaneous associations supported?
Hi,
the documentation refers to a 'multiprocess mode' at a few places, e.g. here:
https://support.dcmtk.org/docs/classDcm ... 6ef9e7d8c7
However, that function is not implemented (nor it's virtual, it's actually a bug), and I do not find examples in the code for handling multiple associations at the same time.
What happens if e.g. multiple clients want to push images to the same store scp at the same time? One is blocked until the other finishes? Or can they both transfer data?
If such asynchronous services are allowed then maybe the event handler (e.g. about association events) should get an argument to identify the association?
Cheers,
Miklos
the documentation refers to a 'multiprocess mode' at a few places, e.g. here:
https://support.dcmtk.org/docs/classDcm ... 6ef9e7d8c7
However, that function is not implemented (nor it's virtual, it's actually a bug), and I do not find examples in the code for handling multiple associations at the same time.
What happens if e.g. multiple clients want to push images to the same store scp at the same time? One is blocked until the other finishes? Or can they both transfer data?
If such asynchronous services are allowed then maybe the event handler (e.g. about association events) should get an argument to identify the association?
Cheers,
Miklos
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Are simultaneous associations supported?
Did you already check the derived DcmThreadSCP class?
Re: Are simultaneous associations supported?
Thanks, no, I haven't checked that. So, if I understand well, I can create an SCPPool that will create a new ThreadSCP for each different associations. Nice!
What happens with the "regular" DcmStoreSCP? Can it handle only one association at a time and other association requests will be on hold until the current association ends? Or it can also manage multiple associations, just all of them will be managed by the same instance and the same thread and SCU-s would be blocked only for the time when the SCP is "busy", i.e. sending/receiving commands?
What happens with the "regular" DcmStoreSCP? Can it handle only one association at a time and other association requests will be on hold until the current association ends? Or it can also manage multiple associations, just all of them will be managed by the same instance and the same thread and SCU-s would be blocked only for the time when the SCP is "busy", i.e. sending/receiving commands?
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Are simultaneous associations supported?
A little sample program is also available. Have a look at "dcmnet/tests/tpool.cc".Thanks, no, I haven't checked that. So, if I understand well, I can create an SCPPool that will create a new ThreadSCP for each different associations. Nice!
What do you mean: the class DcmStorageSCP or the command line tool storescp?What happens with the "regular" DcmStoreSCP?
Re: Are simultaneous associations supported?
Sorry, I meant DcmScp, indeed. I thought, current DCMTK apps use DcmScp as base class and wanted to know if they can process simultaneous associations. Or if I implement my service based on DcmScp, whether it would be able to process simultaneous requests.
But as I see, it is not actually used in current DCMTK apps, like storescp or dcmqrscp, so it doesn't matter for me in the end. And I can use a thread pool to implement my SCP if I want full concurrency.
Thanks!
But as I see, it is not actually used in current DCMTK apps, like storescp or dcmqrscp, so it doesn't matter for me in the end. And I can use a thread pool to implement my SCP if I want full concurrency.
Thanks!
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Are simultaneous associations supported?
For historical reasons, the DcmSCP is not used by the "old" command line tools like storescp or dcmqrscp. However, the newer dcmrecv is based on DcmStorageSCP (which is derived from DcmSCP).
Re: Are simultaneous associations supported?
Ah, good to know! I haven't seen the dcmrecv and dcmsend commands, either. Thanks.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest