[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'ipc' (#rtl)

msgsnd

Send a message to the messague queue

Declaration

Source position: ipc.pp line 645

function msgsnd(

  msqid: cint;

  msgp: PMSGbuf;

  msgsz: size_t;

  msgflg: cint

):cint;

Description

msgsend sends a message to a message queue with ID msqid. msgp is a pointer to a message buffer, that should be based on the TMsgBuf type. msgsiz is the size of the message (NOT of the message buffer record !)

The msgflg can have a combination of the following values (ORed together):

0
No special meaning. The message will be written to the queue. If the queue is full, then the process is blocked.
IPC_NOWAIT
If the queue is full, then no message is written, and the call returns immediately.

The function returns True if the message was sent successfully, False otherwise.

For an example, see msgctl.

Errors

In case of error, the call returns False, and IPCerror is set.

See also

msgget

  

Return message queue ID, possibly creating the queue

msgrcv

  

Retrieve a message from the queue

msgctl

  

Perform various operations on a message queue


Documentation generated on: Mar 17 2017