Inter Process Communication

A

A.M

Hi,

What is the best way to implemet Inter Process Communication in .NET ?

I developed two programs and I want to have them talk to each other.

Thanks,
Alan
 
R

Richard Blewett

It depends on what degree of communication you need. If they just need
coordinate their actions you can use a named Mutex (see the System.Threading
namespace).

If you need proper calling with params, etc the only out-of-the-box solution
is remoting (System.Runtime.Remoting and friends).

However, a while back I wrote a wrapper round shared memory that may help
you do what you want - you can find it here (watch out for line breaks):

http://staff.develop.com/richardb/dotnet/sharedmemory.zip

HTH

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
 
A

A.M

Thanks for help.

So we don't have IPC (Inter Process Communication) in .NET platform?

Alan
 
K

Kevin Yu [MSFT]

Thanks for Richard's reply.

Hi Alan,

I think in .NET framework managed classes, the only way to do inter process
communication is remoting.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
K

Kevin Yu [MSFT]

Hi Alan,

The following IPC mechanisms are supported by Windows:
" Clipboard
" COM
" Data Copy
" DDE
" File Mapping
" Mailslots
" Pipes
" RPC
" Windows Sockets

Some of them are also supported in .net, such as sockets. For others,
PInvoke is also OK. If you need to use pure .net technologe, you can use
remoting as well.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
A

A.M

Thank you everyone for help.

Based on your posts I underestand that Remoting is a suggested method for
inter process communication in .Net. Therefore i am going to use remoting
rather than IPC.

Thanks again,
Alan
 
G

Guest

Thanks for the links - so from what I've read Remoting and Web Services
really are the only two options for IPC in a .NET managed environment
(including moidifying Remoting as you have done with IPC). Is that correct?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top