![]() |
![]() |
![]() |
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
This resmgr_msgreadv() function is a convenience function that should be used to replace the MsgReadv() function. It finds application in combine message handling, where the offset of the rest of the message that is to be read is additionally offset by previous combine message elements (see the section "Advanced Topics" in the Writing a Resource Manager chapter in Programmer's Guide for more information about combine messages).
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 |
![]() |
![]() |
![]() |