Inspirel banner

Programming Distributed Systems with YAMI4

12.3.4 Incoming Message

The incoming message callback is invoked when there is a new incoming message and the callback parameters allow to recover both the message header and the message body. This callback is installed when the agent is initialized.

It should be noted that the incoming message callback is the most important one, as it is necessary at the receiver side, whereas the other callbacks play only the supportive role.

It is not recommended to perform any time-demanding work in incoming message callbacks.

In Ada the callback interface is defined in the YAMI.Core.Incoming_Message_Handlers package.

In C++ the callback signature is defined by incoming_message_dispatch_function.