I am currently studying named pipes in Windows using ASP.NET 3.5 and C #. I wrote a small server program that creates a named pipe:
using (NamedPipeServerStream pipeStream = new NamedPipeServerStream(pipeName)) { pipeStream.WaitForConnection();
and a client application opening this channel as follows:
using (NamedPipeClientStream pipeStream = new NamedPipeClientStream(pipeName)) { pipeStream.Connect();
This works great if only one client connects to the pipe. He can read and write. If I try to connect a second client, the code will never exceed the line
pipeStream.Connect();
Both servers and all clients work on one computer. Any ideas?
Thank you in advance!
Shackles
source share