2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / class / System.Core / System.IO.Pipes / PipeInterfaces.cs
blob9ab74045a740276733e562dcd067deb4c30a31f7
1 using Microsoft.Win32.SafeHandles;
3 namespace System.IO.Pipes
5 // Common interfaces
7 interface IPipe
9 SafePipeHandle Handle { get; }
10 void WaitForPipeDrain ();
13 interface IAnonymousPipeClient : IPipe
17 interface IAnonymousPipeServer : IPipe
19 SafePipeHandle ClientHandle { get; }
20 void DisposeLocalCopyOfClientHandle ();
23 interface INamedPipeClient : IPipe
25 void Connect ();
26 void Connect (int timeout);
27 int NumberOfServerInstances { get; }
28 bool IsAsync { get; }
31 interface INamedPipeServer : IPipe
33 void Disconnect ();
34 void WaitForConnection ();