mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
integrating the existing state of TON Storage / TON Payments / CPS Fift development branches
This commit is contained in:
parent
040df63c98
commit
4e2624459b
153 changed files with 10760 additions and 1695 deletions
19
rldp2/LossStats.h
Normal file
19
rldp2/LossStats.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include "LossSender.h"
|
||||
|
||||
#include "td/utils/int_types.h"
|
||||
|
||||
namespace ton {
|
||||
namespace rldp2 {
|
||||
struct LossStats {
|
||||
void on_update(td::uint32 ack, td::uint32 lost);
|
||||
double loss = 0.1;
|
||||
LossSender prob{0.1, 1e-9};
|
||||
|
||||
private:
|
||||
td::uint32 ack_{0};
|
||||
td::uint32 lost_{0};
|
||||
};
|
||||
} // namespace rldp2
|
||||
} // namespace ton
|
Loading…
Add table
Add a link
Reference in a new issue