|
Aegis2D
Modular C++26 2D game engine for networked games
|
Acknowledgements of UDP datagrams and reliable events resent until acknowledged. More...
#include <aegis2d/net/binary.hpp>#include <aegis2d/net/export.hpp>#include <aegis2d/net/packet.hpp>#include <aegis2d/net/rtt.hpp>#include <array>#include <bitset>#include <chrono>#include <cstddef>#include <cstdint>#include <deque>#include <optional>#include <span>#include <vector>Go to the source code of this file.
Classes | |
| class | aegis2d::net::AckTracker |
| Receiver side of the acknowledgements: which datagrams of the peer arrived. More... | |
| struct | aegis2d::net::ReliabilitySettings |
| Settings of a ReliableChannel. More... | |
| class | aegis2d::net::ReliableChannel |
| Sequences, acknowledgements and reliable events of the datagrams exchanged with one peer. More... | |
| struct | aegis2d::net::ReliableChannel::Stats |
| Counters since the channel was created. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::net |
| Binary serialization, UDP/TCP sockets and the network thread. | |
Variables | |
| constexpr std::size_t | aegis2d::net::max_events_in_flight = 256 |
| Largest number of events sent and not yet acknowledged at once. | |
| constexpr std::size_t | aegis2d::net::max_event_size = PacketHeader::max_payload_size - 1 - 2 - 2 |
Largest event, in bytes: one alone fills an Event datagram. | |
Acknowledgements of UDP datagrams and reliable events resent until acknowledged.
Implements section 5 of the protocol RFC (docs/rfc/reliability.md): every datagram acknowledges the last 33 datagrams of the peer through the ack and ack_bits fields of its header, and the events of Event datagrams are resent until a datagram that carried them is acknowledged.