|
-
Aug 27th, 2007, 01:48 AM
#1
Thread Starter
Addicted Member
Inter Application Communicaiton
Hi:
If I write 2 (C#) program, How do I send messages to each other?
Does Anyone have any simple example?
Thanks
-
Aug 27th, 2007, 02:11 AM
#2
Re: Inter Application Communicaiton
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.
-
Aug 27th, 2007, 04:22 AM
#3
Thread Starter
Addicted Member
Re: Inter Application Communicaiton
 Originally Posted by jmcilhinney
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.
How about MSMQ?
Thanks
-
Aug 27th, 2007, 04:32 AM
#4
Re: Inter Application Communicaiton
Quite possibly, although I've never used it personally. I did say their were numerous ways to do IPC.
-
Aug 27th, 2007, 07:46 AM
#5
Re: Inter Application Communicaiton
Remoting is the "nicest" way, since you can pretend that the remote application is part of your own, after a fashion.
-
Aug 27th, 2007, 10:07 AM
#6
Thread Starter
Addicted Member
Re: Inter Application Communicaiton
 Originally Posted by penagate
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?
Thanks
-
Aug 27th, 2007, 10:13 AM
#7
Re: Inter Application Communicaiton
No I don't, sorry, but I am sure there would be one about.
-
Aug 28th, 2007, 06:23 AM
#8
Re: Inter Application Communicaiton
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).
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|