Информация о сообщении
#include <sys/neutrino.h>struct _msg_info { /* _msg_info _server_info */_Uint32t nd; /* client server */_Uint32t srcnd; /* server - */pid_t pid; /* client server */_Int32t tid; /* thread - */_Int32t chid; /* server server */_Int32t scoid; /* server server */_Int32t coid; /* client client */_Int32t msglen; /* msg - */_Int32t srcmsglen; /* thread - */_Int32t dstmsglen; /* thread - */_Int16t priority; /* thread - */_Int16t flags; /* - client */_Uint32t reserved;};
The _msg_info
structure contains information about a message. The members include:
_NTO_CHF_SENDER_LEN
in the flags argument to ChannelCreate() for the channel that received the message. _NTO_CHF_REPLY_LEN
in the flags argument to ChannelCreate() for the channel that received the message. _NTO_CHF_UNBLOCK
is set on the channel).
If msglen is less than srcmsglen and is also less than the receive buffer size, the message is a network transaction that requires more reading of data with MsgRead*().
The nd (node descriptor) is a temporary numeric description of a remote node; ND_LOCAL_NODE
(or 0
) is the descriptor for the local node.
To: | Use this function: |
---|---|
Compare two nd objects | ND_NODE_CMP() |
Convert a nd to text | netmgr_ndtostr() |
Convert text to a nd | netmgr_strtond() |
ЗОСРВ «Нейтрино»
struct _server_info, MsgInfo(), MsgRead*(), MsgReceive(), MsgReceivev(), MsgSend*(), MsgWrite*(), ND_NODE_CMP(), netmgr_ndtostr(), netmgr_remote_nd(), netmgr_strtond()
Предыдущий раздел: Описание API системной библиотеки