LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2006, 08:23 AM   #1
harvest
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Rep: Reputation: 0
what is the best design(ipc)


I have the daemon connected to the device driver(server). I have several processes(clients). All clients are talking to the server. The server can talk to each client as well as send a broadcast message to all clients. What architecture would you suggest and why? High performance is a must. This is low resources embedded SBC. Simplified code example is appreciated.
Thanks.
 
Old 10-03-2006, 12:54 PM   #2
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Have you considered using sockets? You'd have to use local-domain sockets (AF_UNIX or AF_LOCAL (same thing)) for high performance. These can only be used locally and are represented as a node in the filesystem. They're nice, because if you ever chose to allow access across the network (via sockets w/ AF_INET), it'll be simple to implement, but you get the benefit of having local IPC speeds for local processes.
 
Old 10-03-2006, 04:22 PM   #3
harvest
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Sure I have! That is why I'm calling processes server and client. The case is when I need to broadcast, I'll have to send the same message to each client as many times as number of clients I have. And some other draw back does exist.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux for Graphic Design, web design, and publishing maelstrom209 Linux - Software 8 07-17-2011 11:35 AM
IPC Process! UltraSoul Solaris / OpenSolaris 1 02-04-2005 12:44 PM
about IPC iclinux Programming 1 01-14-2005 11:16 PM
IPC performance DIYLinux Programming 0 07-28-2003 08:20 AM
using IPC::Open2 acid_kewpie Programming 7 09-18-2002 10:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration