Esempio n. 1
0
 public void Open(MacConIndPayload macConInd)
 {
     PMID        = macConInd.PMID;
     Reassembler = new NwkReassembler();
     if (macConInd.Ho)
     {
         var previous = _tracker.Find(PMID);
         if (previous != null)
         {
             Reassembler.CopyFrom(previous.Reassembler);
         }
     }
     IsConnected = true;
 }
Esempio n. 2
0
 public void CopyFrom(NwkReassembler nwkReassembler)
 {
     Clear();
     _retransmitFragments.Clear();
     foreach (var item in nwkReassembler._fragments)
     {
         _fragments.Add(item.Key, item.Value);
     }
     foreach (var item in nwkReassembler._retransmits)
     {
         _retransmits.Add(item.Key, item.Value);
     }
     foreach (var item in nwkReassembler._retransmitFragments)
     {
         _retransmitFragments.Add(item.Key, item.Value);
     }
 }