Munish
Munish

Reputation: 61

Communicating between applications?

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

Answers (3)

Nick Taylor
Nick Taylor

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

foxx1337
foxx1337

Reputation: 2026

Sockets, shared memory, events / signals, pipes, semaphores, message queues, mailslots. Just search the Internet for either.

Upvotes: 1

Alexis Métaireau
Alexis Métaireau

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

Related Questions