$msg = new IPC::Msg(key, flags)
Creates a new message queue associated with key and uses flags to set the permissions. Creates the new message queue if the following are true:
Returns the system identifier for the message queue.
$msg->rcv(buf, len[, type[, flags]])
Reads a message from the queue, returning the type of the message.
Removes and destroys the message queue.
Accepts either a stat object as returned by the stat method or a list of name/value pairs and sets the following values of the stat structure associated with the message queue:
uid gid mode (the permission bits) qbytes
$msg->snd(type, msg[, flags])
Puts a message of type type on the queue with the data from msg. See the msgsnd function.
$ds = $msg->stat
Returns an object of type IPC::Msg::stat (which is a subclass of Class::Struct) that provides the following fields:
uid gid cuid cgid mode qnum qbytes lspid lrpid stime rtime ctime
See the stat function and your system documentation for more information.
Copyright © 2002 O'Reilly & Associates. All rights reserved.