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

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

                    this.Close();
                    _write.Close();
                }
            }
Exemple #5
0
 protected override void OnWrite(UvDataArgs args)
 {
     args.Throw();
     this.Close();
 }
Exemple #6
0
 protected override void OnRead(UvDataArgs args)
 {
     args.Throw();
     _data = args.Data;
     this.Close();
 }
Exemple #7
0
 protected virtual void OnWrite(UvDataArgs args)
 {
 }
Exemple #8
0
 protected virtual void OnRead(UvDataArgs args)
 {
 }
Exemple #9
0
 protected virtual void OnWrite(UvDataArgs args)
 {
 }
Exemple #10
0
 protected virtual void OnRead(UvDataArgs args)
 {
 }