Get additional information about a message
#include <sys/neutrino.h> int MsgInfo( int rcvid, struct _msg_info* info ); int MsgInfo_r( int rcvid, struct _msg_info* info );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The MsgInfo() and MsgInfo_r() kernel calls get additional information about a received message and store it in the specified _msg_info structure.
These functions are identical, except in the way they indicate errors. See the Returns section for details.
|The info->msglen and info->srcmsglen members are valid only until the next call to MsgRead*() or MsgWrite*().|
This call doesn't block.
The only difference between these functions is the way they indicate errors:
ChannelCreate(), _msg_info, MsgRead(), MsgReadv(), MsgReceive(), MsgReceivev(), MsgSend(), MsgSendv(),
Message Passing chapter of Getting Started with QNX Neutrino