SendMessage or Alternative for IPC? 
Author Message
 SendMessage or Alternative for IPC?

I am looking for good ideas on how to do cross-executable
communication.  All executables are C#.  The parent .exe launches n
number of child .exes, and the parent should be able to send messages
to any of the children, and any child should be able to send messages
to the parent (but not to other children).  If this was VB or VFP, I
would use the Win32API and SendMessage or count Mutexes or etc.

How would I do this same kind of thing C# in .NET?

Thanks.



Wed, 09 Feb 2005 00:58:14 GMT  
 SendMessage or Alternative for IPC?
A few choices...

1.  Use SendMessage via p/Invoke by DllImport the
SendMessage API

2.  Use .NET Remoting to establish a remotable object in
both the parent and child exe's.

3.  Use the TCPListener class to create a TCP channel
between the applications and send data between the
applications over the channel.

Jonathan Schafer

Quote:
>-----Original Message-----
>I am looking for good ideas on how to do cross-executable
>communication.  All executables are C#.  The parent .exe
launches n
>number of child .exes, and the parent should be able to
send messages
>to any of the children, and any child should be able to
send messages
>to the parent (but not to other children).  If this was
VB or VFP, I
>would use the Win32API and SendMessage or count Mutexes
or etc.

>How would I do this same kind of thing C# in .NET?

>Thanks.
>.



Wed, 09 Feb 2005 01:46:45 GMT  
 SendMessage or Alternative for IPC?
Thanks, I think remoting is the move, since I will have n child .exe's
running and having to keep a table of TCP ports on the box would be a
mess.  Can you recommend any good "remoting jump start" documents?  I
understand what it is, but that's it, not how to make it happen....

Thanks again.



Sat, 12 Feb 2005 02:11:38 GMT  
 SendMessage or Alternative for IPC?
Nothing specific.  There are remoting examples with .NET.  You can
aslo check out c-sharpcorner.com and gotdotnet.com for examples.

Jonathan Schafer


Quote:
>Thanks, I think remoting is the move, since I will have n child .exe's
>running and having to keep a table of TCP ports on the box would be a
>mess.  Can you recommend any good "remoting jump start" documents?  I
>understand what it is, but that's it, not how to make it happen....

>Thanks again.



Sun, 13 Feb 2005 05:08:21 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Crashing when sending a pointer to a large chunk of shared memory via an IPC SendMessage

2. Service Security Contexts & IPC in C#

3. System V IPC-programs doesn't compile!

4. IPC

5. C/Fortran interoperability and IPC

6. Shared memory and IPC in ansi C

7. ipc, shared memory

8. NEW EMAIL LIST: IPC/Middleware/Socket Programming

9. quck and easy remote ipc

10. passing floats in inet socket-based IPC

11. Newbie question on IPC

12. Help in Shared Memory(IPC), pipes

 

 
Powered by phpBB® Forum Software