make onCongestion cca interface

This commit is contained in:
Green Sky
2025-12-12 14:55:58 +01:00
parent 151ddc38b2
commit 21d38a2a9d
2 changed files with 3 additions and 2 deletions

View File

@@ -70,5 +70,8 @@ struct CCAI {
// if discard, not resent, not inflight // if discard, not resent, not inflight
virtual void onLoss(SeqIDType seq, bool discard) = 0; virtual void onLoss(SeqIDType seq, bool discard) = 0;
// signal congestion externally (eg. send queue is full)
virtual void onCongestion(void) {};
}; };

View File

@@ -58,8 +58,6 @@ struct FlowOnly : public CCAI {
void updateWindow(void); void updateWindow(void);
virtual void onCongestion(void) {};
// internal logic, calls the onCongestion() event // internal logic, calls the onCongestion() event
void updateCongestion(void); void updateCongestion(void);