8000 CStoreSCP - How to raise an event on received CStore request? · fo-dicom fo-dicom · Discussion #1946 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CStoreSCP - How to raise an event on received CStore request? #1946

Answered by gofal
captainstark asked this question in Q&A
Discussion options

You must be logged in to vote

it is because of the nature how tcp-connections work. the server is waiting in the background-task for incomming requests. and there might be several connections at the same time.
So the instances of StoreScp will be created by the server whenever a new connection was established.
So you have to design it the other way round: you need to have a public available method that implement the event-handler. And then in the StoreScp class in the method OnCStoreRequest the instance will invoke this method.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@captainstark
Comment options

@gofal
Comment options

Answer selected by captainstark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0