Connecting Tech Pros Worldwide Help | Site Map

Inter Process Communication

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 16th, 2005, 10:17 AM
A.M
Guest
 
Posts: n/a
Default Inter Process Communication

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



  #2  
Old November 16th, 2005, 10:17 AM
Richard Blewett
Guest
 
Posts: n/a
Default Re: Inter Process Communication

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/do...aredmemory.zip

HTH

Regards

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

"A.M" <nospam1@online.nospam> wrote in message
news:uTpwg%232lEHA.3524@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>
>[/color]


  #3  
Old November 16th, 2005, 10:32 AM
A.M
Guest
 
Posts: n/a
Default Re: Inter Process Communication


Thanks for help.

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

Alan


"Richard Blewett" <richard@dotnetconsult.co.uk> wrote in message
news:eIyN1N3lEHA.3452@TK2MSFTNGP15.phx.gbl...[color=blue]
> It depends on what degree of communication you need. If they just need
> coordinate their actions you can use a named Mutex (see the[/color]
System.Threading[color=blue]
> namespace).
>
> If you need proper calling with params, etc the only out-of-the-box[/color]
solution[color=blue]
> 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/do...aredmemory.zip
>
> HTH
>
> Regards
>
> Richard Blewett - DevelopMentor
> http://staff.develop.com/richardb/weblog
>
> "A.M" <nospam1@online.nospam> wrote in message
> news:uTpwg%232lEHA.3524@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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
> >
> >[/color]
>
>[/color]


  #4  
Old November 16th, 2005, 10:36 AM
Kevin Yu [MSFT]
Guest
 
Posts: n/a
Default Re: Inter Process Communication

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."

  #5  
Old November 16th, 2005, 10:40 AM
Kevin Yu [MSFT]
Guest
 
Posts: n/a
Default Re: Inter Process Communication

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."

  #6  
Old November 16th, 2005, 10:56 AM
Tim Behrsin
Guest
 
Posts: n/a
Default Re: Inter Process Communication

I'm successfully using Remoting using Named Pipes as Channels for IPC
between a Service and a Client. No problems here... try it yourself.

http://www.thecodeproject.com/csharp...PipesPart1.asp
http://www.codeguru.com/Csharp/Cshar...cle.php/c7259/

I prefer the latter article.

Tim


  #7  
Old November 16th, 2005, 10:57 AM
A.M
Guest
 
Posts: n/a
Default Re: Inter Process Communication

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


"A.M" <nospam1@online.nospam> wrote in message
news:uTpwg%232lEHA.3524@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>
>[/color]


  #8  
Old November 16th, 2005, 12:42 PM
dr
Guest
 
Posts: n/a
Default Re: Inter Process Communication

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?


"Tim Behrsin" wrote:
[color=blue]
> I'm successfully using Remoting using Named Pipes as Channels for IPC
> between a Service and a Client. No problems here... try it yourself.
>
> http://www.thecodeproject.com/csharp...PipesPart1.asp
> http://www.codeguru.com/Csharp/Cshar...cle.php/c7259/
>
> I prefer the latter article.
>
> Tim
>
>
>[/color]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.