mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 20:24:26 +01:00
Add initial ACK tracking code
This commit is contained in:
@@ -256,6 +256,15 @@ void Stream::auto_cleanup_payloads(bool value) {
|
||||
auto_cleanup_ = value;
|
||||
}
|
||||
|
||||
void Stream::enable_ack_tracking() {
|
||||
client_flow().enable_ack_tracking();
|
||||
server_flow().enable_ack_tracking();
|
||||
}
|
||||
|
||||
bool Stream::ack_tracking_enabled() const {
|
||||
return client_flow().ack_tracking_enabled() && server_flow().ack_tracking_enabled();
|
||||
}
|
||||
|
||||
void Stream::on_client_flow_data(const Flow& /*flow*/) {
|
||||
if (on_client_data_callback_) {
|
||||
on_client_data_callback_(*this);
|
||||
|
||||
Reference in New Issue
Block a user