PERL msgsnd Function


Syntax

msgsnd ID, MSG, FLAGS


Definition and Usage

Sends the message MSG to the message queue ID, using the optional FLAGS.MSG must begin with the native long integer message type, and be followed by the length of the actual message, and finally the message itself. This kind of packing can be achieved with pack("l! a*", $type, $message)

Return Value

  • 0 on error

  • 1 on success




  

Advertisements



Advertisements