Async two-way communication with Windows Named Pipes (.Net)
I have a windows service and a GUI that need to communicate with each other. Either can send messages at any time. I'm looking at using NamedPipes, but it seems that you cant read & write to the stream at the same time (or at least I cant find any examples that cover this case). Is it possible to do this kind of two-way communication via a single NamedPipe? Or do I need to open two pipes (one from GUI->service and one from service->GUI)? Using WCF you can use duplex named pipes // Create a contract that can be used as a callback public interface IMyCallbackService { [OperationContract(IsOneWay