Reputation: 61
I am very new to programming, and have had no formal training in it before so please bear with me if this is a vague question.
I was just curious: how do different programs on the same computer communicate with each other? From my programming experience I believe it can be achieved by socket programming?
Thanks
Upvotes: 6
Views: 667
Reputation: 153
You can use WM_COPYDATA in Windows which is a really easy way to send data between different applications/processes.
And here is a list of other methods that work cross platforms, and with many different languages.
Upvotes: 1
Reputation: 2026
Sockets, shared memory, events / signals, pipes, semaphores, message queues, mailslots. Just search the Internet for either.
Upvotes: 1
Reputation: 11215
You can rely on all different kind of inter process communication. (IPC). Have a look at http://en.wikipedia.org/wiki/Inter-process_communication
On linux, dbus is used to make applications communicate together. Sockets are only one way to solve this provlem.
Upvotes: 3