provides a reliability queue on top of the unreliable UDP connection layer.
More...
#include <UdpReliableQueue.h>
provides a reliability queue on top of the unreliable UDP connection layer.
◆ GetNextSequenceId()
SequenceId AzNetworking::UdpReliableQueue::GetNextSequenceId |
( |
| ) |
|
Returns the next sequence id for this generator instance.
- Returns
- the next sequence id for this generator instance
◆ GetQueueSize()
uint32_t AzNetworking::UdpReliableQueue::GetQueueSize |
( |
| ) |
const |
Returns the number of unacked reliable messages still pending in the reliable queue.
- Returns
- the number of unacked reliable messages still pending in the reliable queue
◆ OnPacketAcked()
Called when a packet is acked by the remote connection.
- Parameters
-
networkInterface | reference to the network interface bound to the UdpConnection instance |
connection | reference of the connection instance generating the event |
packetId | packet id of the acked packet |
◆ OnPacketLost()
Called when a packet is deemed lost by the remote connection.
- Parameters
-
networkInterface | reference to the network interface bound to the UdpConnection instance |
connection | reference of the connection instance generating the event |
packetId | packet id of the lost packet |
- Returns
- boolean true if the packet was lost and no retry attempt was made, false otherwise
◆ OnPacketReceived()
bool AzNetworking::UdpReliableQueue::OnPacketReceived |
( |
const UdpPacketHeader & |
header | ) |
|
Called when a reliable packet has been received.
- Parameters
-
header | the header for the received reliable packet |
◆ PrepareForSend()
bool AzNetworking::UdpReliableQueue::PrepareForSend |
( |
PacketId |
packetId, |
|
|
SequenceId |
reliableSequenceId, |
|
|
const IPacket & |
packet |
|
) |
| |
Called when we're going to transmit a packet that we want to be reliable.
- Parameters
-
packetId | packet id of the packet we're sending |
reliableSequenceId | the reliable sequence identifier of the packet we're sending |
packet | reference to the packet being transmitted |
- Returns
- boolean true on success, false on failure
The documentation for this class was generated from the following file:
- Code/Framework/AzNetworking/AzNetworking/UdpTransport/UdpReliableQueue.h