BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_MsgQueue_Receive | ( | brp_protocol | protocol, |
unsigned | Timeout, | ||
brp_buf * | RecvMsg, | ||
size_t * | RecvMsg_len, | ||
brp_mempool * | mempool | ||
) |
Wait for a message and return its content.
If no message is received within Timeout ms MSGQ_RECV_TIMEOUT_ERR is returned. If a previously sent message has not been picked up by another host within Timeout ms MSGQ_NOTACKED_TIMEOUT_ERR is returned.
[in] | protocol | used to execute the command |
[in] | Timeout | Max. time (in ms) to wait for a message. |
[out] | RecvMsg | Received Message. |
[out] | RecvMsg_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |