示例#1
0
        unsafe internal Pipe(Loop loop, bool interProcessCommunication)
            : base(loop, HandleType.UV_NAMED_PIPE)
        {
            int r = NativeMethods.uv_pipe_init(loop.NativeHandle, NativeHandle, interProcessCommunication ? 1 : 0);

            Ensure.Success(r);
            pipe_t = (uv_pipe_t *)(this.NativeHandle.ToInt64() + Handle.Size(HandleType.UV_STREAM));
        }
示例#2
0
 unsafe internal Pipe(Loop loop, bool interProcessCommunication)
     : base(loop, HandleType.UV_NAMED_PIPE)
 {
     uv_pipe_init(loop.NativeHandle, NativeHandle, interProcessCommunication ? 1 : 0);
     pipe_t = (uv_pipe_t *)(this.NativeHandle.ToInt64() + Handle.Size(HandleType.UV_NAMED_PIPE) - sizeof(uv_pipe_t));
 }