Interprocess communication: which scenario?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Interprocess communication: which scenario?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Interprocess communication: which scenario?  
Charles Packer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-04 10:50 PM

I need to do the following simple interprocess communication (IPC) among the
se
processes that are all on the same box:
-- A daemon waits for "I'm here" announcements from multiple clients
-- One or more clients send an "I'm here" to the daemon upon command
via the client's GUI (Each client's GUI is viewed by a different
human user)
The daemon retransmits "X is here" to all clients when it receives any "I'm 
here".

I read some tutorials on message queues and sockets and have tried their exa
mples,
but that's the extent of my experience in this area. Since I'm going to have
to invest a significant amount of time learning molecular-level trivia about
IPC to implement the application in C, I'd like some opinions as to which IP
C
scenario -- sockets, message queues, etc. is most appropriate for my applica
tion
model.





[ Post a follow-up to this message ]



    Re: Interprocess communication: which scenario?  
SnaiL


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-04 10:50 PM

Charles Packer wrote:
> I need to do the following simple interprocess communication (IPC)
among these
> processes that are all on the same box:

Ok

> 	-- A daemon waits for "I'm here" announcements from multiple clients
Daemon may listen socket/pipe for these messages
> 	-- One or more clients send an "I'm here" to the daemon upon command

> 	   via the client's GUI (Each client's GUI is viewed by a different
> 	   human user)
These clients will send this message to server's socket/pipe
> The daemon retransmits "X is here" to all clients when it receives
any "I'm here".
The server can do it by using multicast notifications
>
> I read some tutorials on message queues and sockets and have tried
their examples,
> but that's the extent of my experience in this area. Since I'm going
to have
> to invest a significant amount of time learning molecular-level
trivia about
> IPC to implement the application in C, I'd like some opinions as to
which IPC
> scenario -- sockets, message queues, etc. is most appropriate for my
application
> model.

There is one of many opinios :-)






[ Post a follow-up to this message ]



    Re: Interprocess communication: which scenario?  
CBFalconer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-04 10:50 PM

Charles Packer wrote:
>
> I need to do the following simple interprocess communication (IPC)
> among these processes that are all on the same box:
>  -- A daemon waits for "I'm here" announcements from multiple clients
>  -- One or more clients send an "I'm here" to the daemon upon command
>     via the client's GUI (Each client's GUI is viewed by a different
>     human user)
> The daemon retransmits "X is here" to all clients when it receives
> any "I'm here".
>
> I read some tutorials on message queues and sockets and have tried
> their examples, but that's the extent of my experience in this area.
> Since I'm going to have to invest a significant amount of time
> learning molecular-level trivia about IPC to implement the application
> in C, I'd like some opinions as to which IPC scenario -- sockets,
> message queues, etc. is most appropriate for my application model.

Those things are all system specific extensions to the C language,
and thus are off topic on c.l.c. where discussion is limited to
things defined by the various ISO C standards.  In some respects
comp.programming might be suitable, but I suspect you have already
selected the optimum newsgroup in c.u.p.  F'ups set.

--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>  USE worldnet address!







[ Post a follow-up to this message ]



    Re: Interprocess communication: which scenario?  
Rich Teer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-04 10:50 PM

On Mon, 20 Dec 2004, Charles Packer wrote:

[clc removed from newsgroup list, as this is OT over there.]

> I need to do the following simple interprocess communication (IPC) among t
hese
> processes that are all on the same box:
> 	-- A daemon waits for "I'm here" announcements from multiple clients
> 	-- One or more clients send an "I'm here" to the daemon upon command
> 	   via the client's GUI (Each client's GUI is viewed by a different
> 	   human user)
> The daemon retransmits "X is here" to all clients when it receives any "I'm here".


Depending on how portable your application needs to be, Doors are worth
investigating.  They're native to Solaris, and an implementation for
Linux is being worked on.

HTH,

--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"

.  *   * . * .* .
.   *   .   .*
President,                                          * .  . /\ ( .  . *
Rite Online Inc.                                     . .  / .\   . * .
.*.  / *  \  . .
. /*   o \     .
Voice: +1 (250) 979-1638                            *   '''||'''   .
URL: http://www.rite-online.net                     ******************





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:12 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register