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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: msgrcv Chapter 5
Function Reference
Next: Reference: my
 

msgsnd

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:

$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: Reference: msgrcv Perl in a Nutshell Next: Reference: my
Reference: msgrcv Book Index Reference: my

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.