Esempio n. 1
0
 public void ForEachTimedoutPacket(int SessionId, DateTime Time, Action <int, Byte[], int> f)
 {
     foreach (var p in Parts)
     {
         if (p.Value.ResendTime <= Time)
         {
             f(p.Key, p.Value.Data, p.Value.ResentCount + 1);
             p.Value.ResendTime   = Time.AddIntMilliseconds(GetTimeoutMilliseconds(p.Value.ResentCount));
             p.Value.ResentCount += 1;
         }
     }
 }
Esempio n. 2
0
 public void ForEachTimedoutPacket(int SessionId, DateTime Time, Action <int, Byte[]> f)
 {
     foreach (var p in Parts)
     {
         if (p.Value.ResendTime <= Time)
         {
             f(p.Key, p.Value.Data);
             p.Value.ResendTime   = Time.AddIntMilliseconds(GetTimeoutMilliseconds(p.Value.ResentCount));
             p.Value.ResentCount += 1;
             //Debug.WriteLine(Times.DateTimeUtcWithMillisecondsToString(DateTime.UtcNow) + " Resend SessionId: " + SessionId.ToString("X8") + " Index: " + p.Key.ToString() + " Count: " + p.Value.ResentCount.ToString());
         }
     }
 }