protected override void OnWrite(UvDataArgs args) { if (args.Successful) { _read.Read(); } else { _error = args; _read.Close(); this.Close(); } }
protected override void OnRead(UvDataArgs args) { if (args.Code > 0) { _write.Write(args.Data); } else { if (!args.Successful) { _error = args; } this.Close(); _write.Close(); } }
protected override void OnRead(UvDataArgs args) { if (args.Code > 0) { _write.Write(args.Data); } else { if(!args.Successful) _error = args; this.Close(); _write.Close(); } }
protected override void OnWrite(UvDataArgs args) { args.Throw(); this.Close(); }
protected override void OnRead(UvDataArgs args) { args.Throw(); _data = args.Data; this.Close(); }
protected virtual void OnWrite(UvDataArgs args) { }
protected virtual void OnRead(UvDataArgs args) { }