![]()  | 
![]()  | 
![]()  | 
![]()  | 
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 );
libc
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:
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
ChannelCreate(), _msg_info, MsgRead(), MsgReadv(), MsgReceive(), MsgReceivev(), MsgSend(), MsgSendv(),
Message Passing chapter of Getting Started with QNX Neutrino
![]()  | 
![]()  | 
![]()  | 
![]()  |