help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

msgget

Return message queue ID, possibly creating the queue

Declaration

Source position: ipc.pp line 304

function msgget(

  key: TKey;

  msgflg: cint

):cint;

Description

msgget returns the ID of the message queue described by key. Depending on the flags in msgflg, a new queue is created.

msgflg can have one or more of the following values (combined by ORs):

IPC_CREAT
The queue is created if it doesn't already exist.
IPC_EXCL
If used in combination with IPC_CREAT, causes the call to fail if the queue already exists. It cannot be used by itself.

Optionally, the flags can be ORed with a permission mode, which is the same mode that can be used in the file system.

For an example, see msgctl.

Errors

On error, -1 is returned, and IPCError is set.

See also

ftok

  

Create token from filename

msgsnd

  

Send a message to the messague queue

msgrcv

  

Retrieve a message from the queue

msgctl

  

Perform various operations on a message queue

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505