示例#1
0
        private void AddNotAcked(SequenceState seqState, ushort seqNum, ArraySegment <byte> fullBuffer)
        {
            var notAcked = new NotAckedPacket();

            notAcked.Buffer    = fullBuffer.Array;
            notAcked.Offset    = fullBuffer.Offset;
            notAcked.Length    = fullBuffer.Count;
            notAcked.SendTicks = Environment.TickCount;
            notAcked.SeqNum    = seqNum;

            seqState.AddNotAcked(notAcked);
        }
示例#2
0
 public void AddNotAcked(NotAckedPacket packet)
 {
     _notAcked.Add(packet);
 }