Wrapper class that handles management of ack status for a large range of packet id's.
More...
#include <UdpPacketIdWindow.h>
|
static const uint32_t | PacketWindowAckCount = 16384 |
|
Wrapper class that handles management of ack status for a large range of packet id's.
◆ GetHeadSequenceId()
SequenceId AzNetworking::UdpPacketIdWindow::GetHeadSequenceId |
( |
| ) |
const |
|
inline |
◆ GetMostRecentAckState()
BitsetChunk & AzNetworking::UdpPacketIdWindow::GetMostRecentAckState |
( |
BitsetChunk & |
outWindow | ) |
const |
Returns the latest ack vector contained in this UdpPacketIdWindow.
- Parameters
-
outWindow | the window to store the most recent ack state in |
- Returns
- reference to the window where the ack vector was stored
◆ GetPacketAckContainer()
Returns the underlying packet ack container used for retaining packet ack status.
- Returns
- the underlying packet ack container used for retaining packet ack status
◆ GetPacketAckStatus()
PacketAckState AzNetworking::UdpPacketIdWindow::GetPacketAckStatus |
( |
PacketId |
packetId | ) |
const |
Retrieves the latest ack status for a given PacketId.
- Parameters
-
packetId | the identifier of the packet to lookup the latest ack status of |
- Returns
- the current status for the given PacketId
◆ GetSequenceRolloverCount()
SequenceRolloverCount AzNetworking::UdpPacketIdWindow::GetSequenceRolloverCount |
( |
| ) |
const |
|
inline |
Returns the SequenceRolloverCount for the number of times the sequence ids have rolled over.
- Returns
- the number of times the sequence ids have rolled over
◆ UpdateForReceivedPacket()
bool AzNetworking::UdpPacketIdWindow::UpdateForReceivedPacket |
( |
UdpPacketHeader & |
header | ) |
|
Updates the internal ack state for the newly received PacketId.
- Parameters
-
header | the packet header received to process |
- Returns
- boolean false if updating failed, and the packet should be discarded without further processing
◆ UpdateForRemoteAckStatus()
Updates the internal ack state to replicate the received remote ack status.
- Parameters
-
connection | the connection this packet was received on, used for ack callbacks |
header | the packet header received to process |
The documentation for this class was generated from the following files:
- Code/Framework/AzNetworking/AzNetworking/UdpTransport/UdpPacketIdWindow.h
- Code/Framework/AzNetworking/AzNetworking/UdpTransport/UdpPacketIdWindow.inl