Атрибуты сообщения менеджера ресурсов
#include <sys/dispatch.h>
typedef struct _message_attr {
unsigned flags;
unsigned nparts_max;
unsigned msg_max_size;
} message_attr_t;
Данная структура позволяет определять дополнительные требования, предъявляемые к поступающим сообщениям менеджера ресурсов. Структура включает следующие поля:
- flags
- Currently, the following flags are defined:
- MSG_FLAG_CROSS_ENDIAN
- Allow the server to receive messages from clients on machines with different native endian formats.
- MSG_FLAG_DEFAULT_FUNC
- Call this function if no other match is found, in this case, low and high are ignored. This overrides the default behavior of dispatch_handler() which is to return MsgError() (
ENOSYS
) to the sender when an unknown message is received.
- nparts_max
- the maximum number of iovs to reserve in the message_context_t structure.
- msg_max_size
- the maximum message size to be received (the context allocated must be at least big enough to contain a message of that size).
ЗОСРВ «Нейтрино»
iov_t, message_context_t, message_attach()
Предыдущий раздел: Описание API системной библиотеки