A queue ID.
A buffer to hold the new message.
The maximum length in bytes of msg.
This function reads the next available message from the queue specified by qid. If no message is available, this function returns immediately. If there is insufficient space to hold the entire message then the result is operating-system dependent. (This will change in future releases).