start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.95 msgrcv Chapter 3
Functions
Next: 3.2.97 my
 

3.2.96 msgsnd

msgsnd 

ID

, 

MSG

, 

FLAGS

This function calls the msgsnd (2) system call to send the message MSG to the message queue ID . See msgsnd (2) for details. MSG must begin with the long integer message type. You can create a message like this:

$msg = pack "L a*", $type, $text_of_message;

The function returns true if successful, or false if there is an error. On error, it puts the error code into $! . Before calling, you should say:

require "ipc.ph"; require "msg.ph";

This function is available only on machines supporting System V IPC.


Previous: 3.2.95 msgrcv Programming Perl Next: 3.2.97 my
3.2.95 msgrcv Book Index 3.2.97 my