accounted

This commit is contained in:
2024-10-31 12:35:32 +01:00
parent 2a0350a564
commit d88c73c761
4 changed files with 36 additions and 2 deletions

View File

@@ -61,6 +61,10 @@ struct CCAI {
// returns -1 if not implemented, can return 0
virtual int64_t inFlightBytes(void) const { return -1; }
// returns -1 if not implemented, can return 0
// excluded timed out packets (not those currently resent)
virtual int64_t inFlightBytesAccounted(void) const { return -1; }
public: // callbacks
// data size is without overhead
virtual void onSent(SeqIDType seq, size_t data_size) = 0;