F.10. para_msg_reply

Replies to the last received message.

Synopsis. 

#include <parabellym/api.h>

int para_msg_reply(const para_msgi_t *info);

Arguments. 

info
Description of the response. Only attc and attv members are used.

Access. 

Unrestricted.

Description. 

Replies to the sender of the last received message. This function should only be used if the rreq member of the last received message's description block was set to true.

The library automatically sends an empty response if the thread refuses to reply and attempts to receive the next message or if the thread exits.

Return value. 

PEC_SUCCESS
A response was sent.
PEC_MSGQ_BAD_ID
The current thread is not attached to a message queue, see para_msg_attach.
PEC_MSG_BAD_ID

The message had not yet been received.

The message had already been replied.

The message does not require a response.