[Overview][Constants][Types][Procedures and functions] |
Send a message to the messague queue
Source position: ipc.pp line 276
function msgsnd( |
msqid: cint; |
msgp: PMSGbuf; |
msgsz: size_t; |
msgflg: cint |
):cint; |
msgsendsends a message to a message queue with ID msqid. msgpis a pointer to a message buffer, that should be based on the TMsgBuftype. msgsizis the size of the message (NOT of the message buffer record !)
The msgflgcan have a combination of the following values (ORed together):
The function returns Trueif the message was sent successfully, Falseotherwise.
For an example, see msgctl.
In case of error, the call returns False, and IPCerroris set.
|
Return message queue ID, possibly creating the queue |
|
|
Retrieve a message from the queue |
|
|
Perform various operations on a message queue |