C API for BALTECH SDK

§ brp_MsgQueue_Receive()

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.

Parameters
[in]protocolused to execute the command
[in]TimeoutMax. time (in ms) to wait for a message.
[out]RecvMsgReceived Message.
[out]RecvMsg_len
[in]mempoolis 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