*/
size_t (*get_bytes_in_flight_max)(OSSL_CC_DATA *ccdata);
+ /*
+ * Returns the time at which the CC will next release more budget
+ * for sending, or ossl_time_infinite().
+ */
+ OSSL_TIME (*get_next_credit_time)(OSSL_CC_DATA *ccdata);
+
/*
* To be called when a packet with retransmittable data was sent.
* |num_retransmittable_bytes| is the number of bytes sent
*/
uint64_t (*get_bytes_in_flight_max)(OSSL_CC_DATA *ccdata);
+ /*
+ * Returns the time at which the CC will next release more budget
+ * for sending, or ossl_time_infinite().
+ */
+ OSSL_TIME (*get_next_credit_time)(OSSL_CC_DATA *ccdata);
+
/*
* To be called when a packet with retransmittable data was sent.
* |num_retransmittable_bytes| is the number of bytes sent
return SIZE_MAX;
}
+static OSSL_TIME dummy_get_next_credit_time(OSSL_CC_DATA *cc_data)
+{
+ return ossl_time_infinite();
+}
+
static int dummy_on_data_sent(OSSL_CC_DATA *cc,
uint64_t num_retransmittable_bytes)
{
dummy_can_send,
dummy_get_send_allowance,
dummy_get_bytes_in_flight_max,
+ dummy_get_next_credit_time,
dummy_on_data_sent,
dummy_on_data_invalidated,
dummy_on_data_acked,