Another possible method is to insert a message filter into the endpoint reception processing. The idea is that each message goes through a chain of message filters. Each filter executes is's message matching function, that can do something with the message. In particular, the filter can remove the message from the filtering chain, causing it to be "swallowed".
Defining message filters
A message filter is an object of a class, that realizes the rcm::MessageFilter interface, by defining a custom message filtering procedure - rcm::MessageFilter::filterProc. This procedure will be used to processed each incoming message that goes through the filter. In case the filter processes the message and should remove it from further processing this method should return true, otherwise false return value will mean that the message was not "caught" by this filter.
The following example illustrates the message filtering concept:
Generated on Thu Feb 22 2018 13:14:54 for RCM API C++ Library by 184.108.40.206