make onLoss return if found

This commit is contained in:
Green Sky
2025-12-13 13:36:51 +01:00
parent 308790dc3a
commit 35a82cd67f
5 changed files with 16 additions and 8 deletions

View File

@@ -69,7 +69,8 @@ struct CCAI {
virtual void onAck(std::vector<SeqIDType> seqs) = 0;
// if discard, not resent, not inflight
virtual void onLoss(SeqIDType seq, bool discard) = 0;
// return if found
virtual bool onLoss(SeqIDType seq, bool discard) = 0;
// signal congestion externally (eg. send queue is full)
virtual void onCongestion(void) {};