1

what is the best way to realize a communication between 2 processes? And how do I exchange Objects between both? I hoped that I can use something like WCF netNamedPipeBinding, in my understanding this is a way to realize something like this in the normal Framework but it looks like this is not implemented in the Compact framework 3.5 WCF?!

Can someone please give me a hint?

Thank you

twickl

skaffman
  • 398,947
  • 96
  • 818
  • 769
  • possible duplicate of [What is the best mechanism for communicating cross-process in Windows CE?](http://stackoverflow.com/questions/946279/what-is-the-best-mechanism-for-communicating-cross-process-in-windows-ce) – ctacke Feb 03 '11 at 15:07
  • +1 for the amazingly well worded title of the question. – Quibblesome Feb 07 '11 at 15:28

2 Answers2

1

Use plain Socket with a custom protocol.

Felice Pollano
  • 32,832
  • 9
  • 75
  • 115
1

You can pass objects between 2 processes in .Net CF using a WCF Service. However you can only use basicHttpBinding (but you can overcome that by using a SSL connection) and also to generate a WSDL proxy for the WCF service you cannot use the desktop version (SvcUtil.exe), you'll have to use NetCfSvcUtil.exe

http://blogs.msdn.com/b/andrewarnottms/archive/2007/09/13/calling-wcf-services-from-netcf-3-5-using-compact-wcf-and-netcfsvcutil-exe.aspx

Hope that helps.

Raghu
  • 2,678
  • 2
  • 31
  • 38
  • Just for my understanding: I use this for the communication between to processes on the same machine?! –  Feb 03 '11 at 08:30
  • Are you running .Net CF on a mobile device or on a desktop ? – Raghu Feb 03 '11 at 08:53
  • On a Mobile Device! I have to applications on the same Device that have to communicate and exchange objects. –  Feb 03 '11 at 08:56
  • 1
    Have a look at this. http://stackoverflow.com/questions/84855/what-is-the-best-choice-for-net-inter-process-communication – Raghu Feb 03 '11 at 09:47