group
group__libshare__sysmsg
Provides the capability to manage a libshare runtime message queue.

IPC Message Queue

typedef
typedef struct shmsg_t shmsg_t
function
int shmsgget
(shpeer_t *peer)
Obtain the message queue id from a share library peer.
Param
peer
The destination peer message queue.
function
int shmsgsnd
(int msqid, const void *msgp, size_t msgsz)
Send a message to a share library peer.
Param
msg_qid
The share library message queue id.
msg_type
A non-zero user-defined categorical number.
See
shmsgget() group__libshare__sysmsg_1ga3c42c2559874defb448a3b0436c919f1 member
function
int shmsg_write
(int msg_qid, shbuf_t *msg_buff, shkey_t *dest_key)
Send a message to a share library peer.
Param
dest_key
Peer key of message destination. Specifying NULL indicates to use the peer used to open the message queue.
See
shmsgget() group__libshare__sysmsg_1ga3c42c2559874defb448a3b0436c919f1 member
function
int shmsgrcv
(int msqid, void *msgp, size_t msgsz)
Receive a message from a share library peer.
function
int shmsg_read
(int msg_qid, shkey_t *src_key, shbuf_t *msg_buff)
Receive a message from a share library peer.
function
int shmsgctl
(int msg_qid, int cmd, int value)
Set or retrieve message queue control attributes.
define
MAX_MESSAGE_QUEUES
512
define
MESSAGE_QUEUE_SIZE
4096000
The maximum size of an individual libshare message queue.
define
MAX_MESSAGES_PER_QUEUE
2048
The maximum number of messages a message queue can contain.
define
SHMSGF_RMID
(1 << 0)
remove a message queue's resources.
define
SHMSGF_OVERFLOW
(1 << 1)
discard stale messages when queue is full.
define
SHMSGF_ANONYMOUS
(1 << 2)
allow for receiving messages sent by one self.
define
SHMSGF_AUTH
(1 << 4)
unused