msgsnd id , msg , flags
Calls the System V IPC
msgsnd
system call to send the message
msg
to the message queue
id
.
msg
must begin with the long integer message type. You can create a message like this:
The function returns true if successful, or false if there is an error. On error, it puts the error code into$msg = pack "L a*", $type, $text_of_message;
$!
. Before calling, you should say: This function is available only on machines supporting System V IPC.require "ipc.ph"; require "msg.ph";
Copyright © 2001 O'Reilly & Associates. All rights reserved.