How do I implement communication between Linux programs written in C? In particular, I want the following:
My program can work in multiple instances. At startup, I want my program to detect all other instances of my program that are already running, and then it should be able to send them a text string. On the other hand, I also want instances that are already running to be notified that the new instance is running, and they should also be able to send a text string to the new instance.
Can someone point me to some APIs that can be used to implement such software on Linux? On Windows, I can simply list all the windows, check their class names to find out all instances of my program, and then register my own message with the system, which I can use to send data to them. But how can I do this on Linux?
Thanks for any tips!
source share