| 75 | } |
| 76 | |
| 77 | TAckTracker::~TAckTracker() { |
| 78 | for (TPacketHash::const_iterator i = PacketsInFly.begin(); i != PacketsInFly.end(); ++i) |
| 79 | Congestion->Failure(); |
| 80 | // object will be incorrect state after this (failed packets are not added to resend queue), but who cares |
| 81 | } |
| 82 | |
| 83 | int TAckTracker::GetPacketToSend(float deltaT) { |
| 84 | int res = SelectPacket(); |