| [Overview][Constants][Types][Procedures and functions][Index] | 
Send a message to the messague queue
Source position: ipc.pp line 645
| function msgsnd( | 
| msqid: cint; | 
| msgp: PMSGbuf; | 
| msgsz: size_t; | 
| msgflg: cint | 
| ):cint; | 
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):
The function returns True if the message was sent successfully, False otherwise.
For an example, see msgctl.
In case of error, the call returns False, and IPCerror is set.
| 
 | Return message queue ID, possibly creating the queue | |
| 
 | Retrieve a message from the queue | |
| 
 | Perform various operations on a message queue |