Hi:
If I write 2 (C#) program, How do I send messages to each other?
Does Anyone have any simple example?
Thanks
Printable View
Hi:
If I write 2 (C#) program, How do I send messages to each other?
Does Anyone have any simple example?
Thanks
It's called inter-process communication (IPC) and there are numerous ways to implement it. How you choose to do it depends on the situation. Remoting is the "official .NET way" of doing IPC, but you might use UDP or TCP directly or some other method.
Quote:
Originally Posted by jmcilhinney
How about MSMQ?
Thanks
Quite possibly, although I've never used it personally. I did say their were numerous ways to do IPC.
Remoting is the "nicest" way, since you can pretend that the remote application is part of your own, after a fashion.
So Remoting is the way to go, Do you have the simplest example for digestion instead of the microsoft example?Quote:
Originally Posted by penagate
Thanks
No I don't, sorry, but I am sure there would be one about.
TCP / UDP is better imho. But that's just personal preference.
I prefer it because its not one of MS's heinous proprietary protocols, and its more easily portable. It's also more easily modifiable when communicating between applications that are not .net based (e.g. C/C++ under linux, which is what I do a lot of client/server comms with).