for srt push fix ack paramter error result in pkt lost

This commit is contained in:
xiongguangjie
2022-06-03 20:18:34 +08:00
parent 7038924c6f
commit 7606dd7110
7 changed files with 142 additions and 69 deletions

View File

@@ -71,4 +71,13 @@ bool ACKPacket::storeToData() {
return true;
}
std::string ACKPacket::dump(){
_StrPrinter printer;
printer << "last_ack_pkt_seq_number="<<last_ack_pkt_seq_number<<\
" rtt="<<rtt<<" rtt_variance="<<rtt_variance<<\
" pkt_recv_rate="<<pkt_recv_rate<<" available_buf_size="<<available_buf_size<<\
" estimated_link_capacity="<<estimated_link_capacity<<" recv_rate="<<recv_rate;
return std::move(printer);
}
} // namespace