Skip to content
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