Open 3D Engine AzNetworking API Reference  2205.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Public Member Functions | List of all members
AzNetworking::UdpFragmentQueue Class Reference

Class for reconstructing packet chunks into the original unsegmented packet. More...

#include <UdpFragmentQueue.h>

Public Member Functions

void Update ()
 Updates the UdpFragmentQueue timeout queue.
 
void Reset ()
 Resets all internal state.
 
SequenceId GetNextFragmentedSequenceId ()
 Returns the next (outgoing) fragmented sequenceId for this FragmentQueue instance.
 
PacketDispatchResult ProcessReceivedChunk (UdpConnection *connection, IConnectionListener &connectionListener, UdpPacketHeader &header, ISerializer &serializer)
 

Detailed Description

Class for reconstructing packet chunks into the original unsegmented packet.

Member Function Documentation

◆ ProcessReceivedChunk()

PacketDispatchResult AzNetworking::UdpFragmentQueue::ProcessReceivedChunk ( UdpConnection connection,
IConnectionListener connectionListener,
UdpPacketHeader header,
ISerializer serializer 
)

Processes a received chunk and delivers the final reconstructed packet if possible.

Parameters
connectionpointer to the connection this packet chunk was received on
connectionListenerthe connection listener for delivery of completed packets
headerthe chunk packet header
serializerthe serializer containing the chunk body
Returns
PacketDispatchResult result of processing the chunk

The documentation for this class was generated from the following file: