MSGQ Module
Application Program Interface
2-229
2.16
MSGQ Module
The MSGQ module allows for the structured sending and receiving of
variable length messages. This module can be used for homogeneous or
heterogeneous multi-processor messaging.
Functions
❏
MSGQ_alloc. Allocate a message. Performed by writer.
❏
MSGQ_close. Closes a message queue. Performed by reader.
❏
MSGQ_count. Return the number of messages in a message queue.
❏
MSGQ_free. Free a message. Performed by reader.
❏
MSGQ_get. Receive a message from the message queue.
Performed by reader.
❏
MSGQ_getAttrs: Returns the attributes of a local message queue.
❏
MSGQ_getDstQueue. Get destination message queue.
❏
MSGQ_getMsgId. Return the message ID from a message.
❏
MSGQ_getMsgSize. Return the message size from a message.
❏
MSGQ_getSrcQueue. Extract the reply destination from a message.
❏
MSGQ_isLocalQueue. Returns TRUE if local message queue.
❏
MSGQ_locate. Synchronously find a message queue. Performed by
writer.
❏
MSGQ_locateAsync. Asynchronously find a message queue.
Performed by writer.
❏
MSGQ_open. Opens a message queue. Performed by reader.
❏
MSGQ_put. Place a message on a message queue. Performed by
writer.
❏
MSGQ_release. Release a located message queue. Performed by
writer.
❏
MSGQ_setErrorHandler. Set up handling of internal MSGQ errors.
❏
MSGQ_setMsgId. Sets the message ID in a message.
❏
MSGQ_setSrcQueue. Sets the reply destination in a message.
Constants, Types, and
Structures
/* Attributes used to open message queue */
typedef struct MSGQ_Attrs {
Ptr notifyHandle;
MSGQ_Pend pend;
MSGQ_Post post;
} MSGQ_Attrs;