Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="UvPipe"/> handle on the given event loop.
 /// </summary>
 /// <param name="loop"></param>
 /// <param name="ipc">Indicates if this pipe will be used for handle passing between processes.</param>
 public UvPipe(UvLoop loop, bool ipc = false) : base(loop, UvHandleType.NamedPipe)
 {
     this.Ipc = ipc;
     Libuv.EnsureSuccess(Libuv.uv_pipe_init(loop, this, ipc ? 1 : 0));
     this.NeedsToBeClosed = true;
 }