Jump to content

Clearing buffer


rahulr1988

Recommended Posts

Its a little bit tricky because you can't remove entities from a link and often the first entity in the queue is already transferring onto the link.

The basic concept is to periodically (I used a Timer) Search for all entities in that queue that are not currently transferring, then for each match, Remove it and do something with it (I reset its destination and sent it to Sink2).


In this example I clear the source buffer every two minutes.ClearingSourceBuffer.spfx

Link to comment
Share on other sites

×
×
  • Create New...