title: How to do a non-waiting write on a named pipe (c#)?
body: <p>I'm using .net 3.5 named pipes and my server side is :</p>
  
  <pre><code>serverPipeStream = new NamedPipeServerStream("myPipe", PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
  </code></pre>
  
  <p>When I write some data with, say, BinaryWriter, the write() call itself doesn't return until the client side has called a read() on its NamedPipeClientStream.</p>
  
  <p>The BinaryWriter is :</p>
  
  <pre><code>writer = new BinaryWriter(serverPipeStream);
  </code></pre>
  
  <p>I'm aware that NamedPipeServerStream offers a BeginRead/BeginWrite but from what I gather, named pipes are supposed to allow streamwriters to perform on top of them (as seen in many Microsoft-given examples).</p>
  
  <p>So how can I make my write() to the named pipe non-waiting ?</p>
  
  <p>Thanks in advance for any help.</p>