This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Read a message from a client
#include <sys/resmgr.h> int resmgr_msgreadv( resmgr_context_t * ctp, iov_t * rmsg, int rparts, int offset );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
This resmgr_msgreadv() function is a convenience function that you should use in a resource manager instead of MsgReadv().
You'll use resmgr_msgreadv() when handling combine messages, where the offset of the rest of the message that is to be read is additionally offset by previous combine message elements. For more information, see "Combine messages" in the Writing a Resource Manager chapter of the Programmer's Guide.
The same values as MsgReadv(): the number of bytes read, or -1 if an error occurs (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
MsgReadv(), resmgr_context_t, resmgr_msgread(), resmgr_msgwrite(), resmgr_msgwritev()
"Combine messages" in the Writing a Resource Manager chapter of the Programmer's Guide