121
107
<p>There is two way to receive messages in GRAS. The first one is to register a given function as callback to a given type of messages (see <a class="el" href="group__GRAS__msg__cb.html#gada679e069d5516d632542a963a5e921c">gras_cb_register</a> and associated section). But you can also explicitely wait for a given message with the <a class="el" href="group__GRAS__msg__exchange.html#ga9ec85c89a6e59334939d4483c2e04374">gras_msg_wait</a> function.</p>
122
108
<p>Usually, both ways are not intended to be mixed of a given type of messages. But if you do so, it shouldn't trigger any issue. If the message arrives when gras_msg_wait is blocked, then it will be routed to it. If it arrives when before or after <a class="el" href="group__GRAS__msg__exchange.html#ga9ec85c89a6e59334939d4483c2e04374">gras_msg_wait</a>, it will be passed to the callback.</p>
123
109
<p>For an example of use, please refer to <a class="el" href="group__GRAS__ex__ping.html">Ping-Pong</a>. The archive contains much more examples, but their are not properly integrated into this documentation yet. </p>