Perl msgrcv Function

Advertisements


Description

This function receives a message from the queue ID, placing the message into the variable VAR, up to a maximum size of SIZE.

Syntax

Following is the simple syntax for this function:

msgrcv ID, VAR, SIZE, TYPE, FLAGS

Return Value

This function returns 0 on error and 1 on success.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements