I have created a dicom server that handles Normalised DIMSE requests
and C-store request from a client
Code: Select all
struct DicomScpThreadPool_C
: public DcmSCPPool<DicomServer_C>
, public OFThread
{
OFCondition status
protected:
void run()
{
status = listen();
}
};
dcm_pool->start();
Before application shutdown or after a specific action the
dicom server should stop listening. The client will keep sending
connection request but the server should have closed the connection
and not listen to these requests.
I tried achieving this using DcmSCPPool's stopAfterCurrentAssociations
but it doesn't seem to work. I looked at definition of this function in
scppool.cc and I see no reason for it to not work. Also, since this function
does not return anything its status cannot be determined.
Code: Select all
dcm_pool->stopAfterCurrentAssociations();
dcm_pool->join();