sacn icon indicating copy to clipboard operation
sacn copied to clipboard

Receive all priorities in callback, not just the highest

Open andrewyager opened this issue 8 months ago • 2 comments

I have an application where it would be helpful to receive all priorities, rather than just the highest priority packets in the callback; because I want to be able to make some alternate decisions about what to do with packets based on the incoming priority and/or source name.

Would it be possible to add a flag to the handler that impacts the code at https://github.com/Hundemeier/sacn/blob/1bc53abc677c97ba4f8a40e13b341de49ffd18c4/sacn/receiving/receiver_handler.py#L55 to allow all priorities to be passed on?

Perhaps a more elegant solution might be also to define a handler that could pass for every packet, and a different handler that only passes on the highest priority packets (as is the behaviour now)?

andrewyager avatar Jun 06 '24 11:06 andrewyager