Using awDispatch
The awDispatch function may be used to wait to receive a single event for any Broker client, dispatch the event to the appropriate callback function, and then return. The subscribe2.c and subscribe4.c sample applications provide examples of how to use awDispatch.