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

Programming Perl

Programming PerlSearch this book
Previous: 3.2.94 msgget Chapter 3
Functions
Next: 3.2.96 msgsnd
 

3.2.95 msgrcv

msgrcv 

ID

, 

VAR

, 

SIZE

, 

TYPE

, 

FLAGS

This function calls the msgrcv (2) system call to receive a message from message queue ID into variable VAR with a maximum message size of SIZE . See msgrcv (2) for details. When a message is received, the message type will be the first thing in VAR , and the maximum length of VAR is SIZE plus the size of the message type. 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.94 msgget Programming Perl Next: 3.2.96 msgsnd
3.2.94 msgget Book Index 3.2.96 msgsnd