DcmSCP: how to stop listen ?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
qimo601
Posts: 32
Joined: Wed, 2012-06-06, 07:38

DcmSCP: how to stop listen ?

#1 Post by qimo601 »

hi,all.

how to stop listening in DcmSCP funtions?

I want to use DcmSCP to receive the moveRequest and send a dcm to the dest ip. Then stop the listening.

I have tried the DcmSCP::stopAfterCurrentAssociation (), but it stoped before receiving moveRequest.


can anybody help me?

Thanks in advance.

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

Re: DcmSCP: how to stop listen ?

#2 Post by omarelgazzar »

The only way to stop listening is to overwrite the function stopAfterCurrentAssociation and to return OFTrue. This will cause the DCMSCP to stop listening after the current association.

qimo601
Posts: 32
Joined: Wed, 2012-06-06, 07:38

Re: DcmSCP: how to stop listen ?

#3 Post by qimo601 »

omarelgazzar wrote:The only way to stop listening is to overwrite the function stopAfterCurrentAssociation and to return OFTrue. This will cause the DCMSCP to stop listening after the current association.

Thank you. I got it.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest