![]() |
![]() |
![]() |
Read a message from a client
#include <sys/resmgr.h> int resmgr_msgread( resmgr_context_t * ctp, void * msg, int size, int offset );
libc
The resmgr_msgread() function is a convenience function that should be used to replace the MsgRead() function. It finds application in "combine message" handling, where the offset of the rest of the message that's to be read is additionally offset by previous combine message elements (see the section "Advanced Topics" in the Writing a Resource Manager chapter in the Programmer's Guide for more information about combine messages).
The same values as MsgRead(): 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 |
![]() |
![]() |
![]() |