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
18
rldp2/Ack.h
Normal file
18
rldp2/Ack.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "td/utils/int_types.h"
|
||||
|
||||
namespace ton {
|
||||
namespace rldp2 {
|
||||
// Helper for receiver
|
||||
// Also this information is sent to the sender as an acknowlegement.
|
||||
struct Ack {
|
||||
td::uint32 max_seqno{0};
|
||||
td::uint32 received_mask{0};
|
||||
td::uint32 received_count{0};
|
||||
|
||||
// returns true if we know that packet is new and hasn't been received yet
|
||||
bool on_got_packet(td::uint32 seqno);
|
||||
};
|
||||
} // namespace rldp2
|
||||
} // namespace ton
|
Loading…
Add table
Add a link
Reference in a new issue