C# named-pipe server for IPC (CSNamedPipeServer)

The VC# code sample demonstrates creating a basic named pipe server for inter-process communication

C# (75.7 KB)
 
 
 
 
 
(0)
11,586 times
Add to favorites
2/20/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How to keep the pipe open
    1 Posts | Last post December 21, 2017
    • The code creates a one-time pipe. It receives a message, then sends a response and then quits.
      In real-life scenario I need to keep the pipe open.
      
      Well, you need to perform 
      pipeServer.WaitForPipeDrain();
      pipeServer.Disconnect();
      
      and then loop to 
      pipeServer.WaitForConnection();
      
      Dror