Exemple #1
0
 private void method_19(ulong ulong_2, ulong ulong_3, ulong[] ulong_4)
 {
     if (ulong_4.Length != 0)
     {
         lock (this.object_2)
         {
             for (int i = 0; i < ulong_4.Length; i++)
             {
                 ulong num2 = ulong_4[i];
                 if (i == 0)
                 {
                     this.class161_0.method_5(num2 - ((ulong)1L));
                 }
                 Class145 class2 = this.class161_0.method_8(num2);
                 if ((class2 != null) && !this.sortedArray_0.Contains(num2))
                 {
                     this.interface15_0.Send(class2.method_1(), this.ipendPoint_0);
                     this.sortedArray_1.Add(num2);
                     this.uint_0++;
                 }
                 if (i < (ulong_4.Length - 1))
                 {
                     this.class161_0.sJirjHxlxv(num2 + ((ulong)1L), ulong_4[i + 1] - ((ulong)1L));
                 }
             }
             SortedArray <ulong> array = this.sortedArray_0;
             this.sortedArray_0 = this.sortedArray_1;
             this.sortedArray_1 = array;
             this.sortedArray_1.Clear();
         }
     }
 }
Exemple #2
0
 public void method_16(int int_5)
 {
     if (this.object_1 == false)
     {
         Class145 class2 = this.class161_0.method_10();
         if (class2 != null)
         {
             TimeSpan span = (TimeSpan)(DateTime.Now - class2.method_2());
             if (span.TotalSeconds > 30.0)
             {
                 this.Close(SessionClosedCause.ResendTimeout, true);
                 return;
             }
             this.interface15_0.Send(class2.method_1(), this.ipendPoint_0);
             this.uint_0++;
         }
         this.int_3 += int_5;
         if (this.int_3 >= 0x2710)
         {
             this.method_17();
             this.int_3   = 0;
             this.ulong_1 = this.uint_0;
             this.int_4   = 0;
         }
     }
 }