Hi,
I'm writing a socket oriented layer over tcp net using RTX . I need to redirect socket events to the good task for the good socket. I use together mailboxes and events : the OR / END triggering possibility of events and the message content of a mailbox to get information on a particular sockets . But if the event is not for the waiting socket I need to 'reinject ' the data in the mailbox ....
Could it be possible to add a function in the RTX library to peek a mailbox without getting out the message ?
I think the latest version of freertos has this function .
In this case , I guess you can have several event messages from different sockets in the mailbox of a thread.
What are you doing if you're waiting a event for socket 1 in thread A and there's a event message from socket 2 in the mailbox ? It's the same trouble :/