Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-11

IPC/SHMGET and Multiple Variables

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

T.Guilleminot

Hi

I want to use IPC Shared Memory mecanism to enable communication between Linux processes. I followed doc example
(http://community.freepascal.org:10000/docs-html/rtl/ipc/shmctl) which works fine.
However I'm unable to find how the handle multiple variables (or may be an array).
Should I have to open as many shared segments as variables ? Or may be store all into my single segment but with a separator character ? What would you recommend ?

Thanks !
Tom

Marco van de Voort
to T.Guilleminot
Show quoted text 6 lines
I want to use IPC Shared Memory mecanism to enable communication between Linux processes. I followed doc example (http://community.freepascal.org:10000/docs-html/rtl/ipc/shmctl) which works fine. However I'm unable to find how the handle multiple variables (or may be an array).

Stuff everything into a (static, no ansistrings!) record, and then make sure that the constant segszie of the example is as large as the record.