make onCongestion cca interface
This commit is contained in:
@@ -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) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user