The time now is Thu 23 May 2013, 08:10
All times are UTC - 4 |
| Author |
Message |
vovchik

Joined: 23 Oct 2006 Posts: 1230 Location: Ukraine
|
Posted: Sun 05 Feb 2012, 17:20 Post subject:
climsg 0.1.1 - Interprocess communication |
|
Dear puppians,
Here is climsg (v.0.1.1), which I compiled in Lucid. It allows you to create and use a message queue, enabling communication among processes. Here is the description:
| Quote: | Climsg is a simple inter-process communication program, mostly designed for scripts that don't usually have such a thing.
Messages can be sent, received, repeated or flushed from the queue, the message system is handled by the kernel, so any modern kernel should be fine, if you have compiled your own kernel you may have to 'opt in' the message system.
Messages can use the default 'key' or can specify a custom 'key' allowing for semi-private communications, also message 'types' can be used, a type is any integer > 0, only messages of the correct type will be peeled of from the queue and printed to stdout, type 0 is a special case and is use to receive any message regardless of 'type' of course the 'key' must match as well.
Because the messages are handled by the kernel, messages can be passed to and received back from a chroot environment.
Queues are FIFO and LOCAL only. |
I see it as useful in programs such as gtkdialog, where vars cannot be assigned on the fly within a gui. Now this is possible, since the messages created by climsg can be retrieved by type and key.
The man page is in /usr/local/share/man/man1/climsg.1.gz, and an example program is in /usr/local/share/doc/climsg/climsgexample.
Have fun...
With kind regards,
vovchik
PS the source is here: http://cli-apps.org/content/show.php/CLIMsg+%28C%29ommand+%28Li%29ne+%28M%29essage?content=148626
| Description |
|

Download |
| Filename |
climsg-0.1.1.pet |
| Filesize |
5.61 KB |
| Downloaded |
99 Time(s) |
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0374s ][ Queries: 12 (0.0070s) ][ GZIP on ] |