public void Initialize(byte index, Protocol.Time time) { Index = index; // All next source times must be initialized with the connection time. RX.NextRemoteTimes = new Protocol.Ordinal.Window.Times(time); // TX Ack count must be initialized to 1 as if a previous ack had been received with // ack.Next = 0. This ensures a fast retransmit can be triggered under the proper // threshold for the first packet as well. TX.Ack = (default, default, 1);
/// <summary> /// If an ordinal window time is less than <paramref name="time"/> set it to <paramref name="time"/>. /// </summary> public void Adjust(Protocol.Time time) { if (a0 < time) { a0 = time; } if (a1 < time) { a1 = time; } if (a2 < time) { a2 = time; } if (a3 < time) { a3 = time; } }
public Times(Protocol.Time time) => a0 = a1 = a2 = a3 = time;