Ejemplo n.º 1
0
        public bool WaitForConnect()
        {
            // Wait for clients to connect
            bool status = NativePipe.ConnectNamedPipe(_handle, null);

            return(status ? true : (Marshal.GetLastWin32Error() == NativePipe.ERROR_PIPE_CONNECTED));
        }
Ejemplo n.º 2
0
 public bool WaitForConnect()
 {
     if (!NativePipe.ConnectNamedPipe(this._handle, null))
     {
         return(Marshal.GetLastWin32Error() == 0x217L);
     }
     return(true);
 }