POSIX Queues with message type facility of System V queues
We have been using System V message queues for quite some time. Each of our process has two kinds of queues. (1) For receiving transaction messages, which is different for each process and (2) For receiving control messages, which is global for all processes. Each process get its relevant message from (2) based on the process id of that process (using the process id in the message type of msgbuf struct).
Now we are looking to use POSIX queues. I have gone through the documentation but could not find a way to resolve (2).
Can we do selective receive on POSIX queue, based on some message type?