You are not logged in.
I'm beginner C developer. I'm working on a open source project which uses Unix Domain Socket in order modules to communicate each other. The idea is this:
I have 4 modules which run as Linux daemons. One daemon acts as kernel. His only task is to forward the messages between the modules. Messages are only simple JSON strings. Is there some similar solution? I'm looking for some source code which similar?
I have created multithreaded Unix Domain socket server and client but the problem is in the switch system which must recognize the messages and send them to the appropriate destination module.
Is this a good software design? Is there a weak design?
Thank you in advance!
I'm really not sure what you're asking exactly... Are Unix domain sockets appropriate for such a use? Sure they are... They're not your only option, but they may be the easiest/best choice, depending on your needs...
As for your "problem", I don't understand what it is exactly... Why are you having trouble identifying the messages and where to redirect them? If you post some code and explain your problems better, we'll probably be able to help...
I'm looking for implementation of daemons which use Unix domain Socket to send and receive messages each other. Can anyone paste here an example?