/////////////////////////////////////////////////////////////////////
| 47 | |
| 48 | ////////////////////////////////////////////////////////////////////////// |
| 49 | void TAckTracker::Resend() { |
| 50 | CurrentPacket = 0; |
| 51 | for (TPacketHash::const_iterator i = PacketsInFly.begin(); i != PacketsInFly.end(); ++i) |
| 52 | Congestion->FailureOnSend(); // not actually correct but simplifies logic a lot |
| 53 | PacketsInFly.clear(); |
| 54 | DroppedPackets.clear(); |
| 55 | ResendQueue.clear(); |
| 56 | for (size_t i = 0; i < AckReceived.size(); ++i) |
| 57 | AckReceived[i] = false; |
| 58 | } |
| 59 | |
| 60 | int TAckTracker::SelectPacket() { |
| 61 | if (!ResendQueue.empty()) { |
no test coverage detected