Modules

Messages
[Communication facilities]

Defining messages and callbacks, and exchanging messages. More...

Modules

 Message declaration and retrival
 Callback declaration and use
 Message exchange
 RPC specific functions
 Message exchange (advanced interface)

Detailed Description

Defining messages and callbacks, and exchanging messages.

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 gras_cb_register and associated section). But you can also explicitely wait for a given message with the gras_msg_wait function.

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 gras_msg_wait, it will be passed to the callback.

For an example of use, please refer to The classical Ping-Pong in GRAS. The archive contains much more examples, but their are not properly integrated into this documentation yet.


Back to the main Simgrid Documentation page Generated for SimGridAPI by doxygen