BufferedPacket

[PacketHandler](API\Runtime\PacketHandler\PacketHandler) will buffer packets, this struct is used to buffer such packets while handler components are initialized

Choose your operating system:

Windows

macOS

Linux

References

Module

PacketHandler

Header

/Engine/Source/Runtime/PacketHandlers/PacketHandler/Public/PacketHandler.h

Include

#include "PacketHandler.h"

Syntax

struct BufferedPacket

Remarks

PacketHandler will buffer packets, this struct is used to buffer such packets while handler components are initialized

Variables

Name Description

Public variable

TSharedPtr< con...

 

Address

For connectionless packets, the address to send to

Public variable

uint32

 

CountBits

Size of buffered packet in bits

Public variable

uint8 *

 

Data

Buffered packet data

Public variable

HandlerComponen...

 

FromComponent

If buffering a packet through 'SendHandlerPacket', track the originating component

Public variable

uint32

 

Id

Used by ReliabilityHandlerComponent, to track packet id's

Public variable

double

 

ResendTime

Used by ReliabilityHandlerComponent, to mark a packet for resending

Public variable

FOutPacketTrait...

 

Traits

Traits applied to the packet, if applicable

Constructors

Name Description

Public function

BufferedPacket

(
    uint8* InCopyData,
    uint32 InCountBits,
    FOutPacketTraits& InTraits,
    double InResendTime,
    uint32 InId
)

Public function

BufferedPacket

(
    TSharedPtr< const FInternetAddr > I...,
    uint8* InCopyData,
    uint32 InCountBits,
    FOutPacketTraits& InTraits,
    double InResendTime,
    uint32 InId
)

Destructors

Name Description

Public function

~BufferedPacket()

Base destructor

Functions

Name Description

Public function Const

void

 

CountBytes

(
    FArchive& Ar
)