Ongy / netlink-hs

Netlink communication for Haskell
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

filter buffer when reading #11

Open teto opened 5 years ago

teto commented 5 years ago

I have different threads reading the netlink messages.

Problem is that some messages should be treated by different threads. Right now, when a thread reads an answer, it reads all messages and other threads don't see the answer to their own request. What I would like to do is filter the message I read from netlink-hs (by sequence/pid) ? Another possibility would be to reinject packets in the netlink-hs queue. Is this something doable or should I restructure my application to be in charge of the dispatching ?