标签云

微信群

扫码加入我们

WeChat QR Code

I've never had to do IPC on Windows before. Currently I'm developing a pair of programs, a standard GUI/CLI app and a windows service. The app has to tell the service what to do. So, assuming the communication is local only, what would be the best communication method for these two processes?

Where best is defined as more robust and less error prone, not the most performant nor the easiest to code.

Code examples will be very welcome, but aren't required :-)

Note I'm asking about what to use, a standard TCP socket, named pipes, or some other means of communication only.

Thanks!


WCF: Just like I'm encouraged to use .NET 3.5 :) Sadly, not an option Remoting seems like the way to go.

2018年08月16日11分45秒

yes and original question was about .net 2.0 :(

2018年08月16日11分45秒

System.IO.Pipes is not available in .Net 2.0

2018年08月16日11分45秒

-1: WCF requires .NET 3.0

2018年08月16日11分45秒

Semaphores is a technique used when threads/processes has shared memory.

2018年08月16日11分45秒