BufferedPacket

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

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,
    float InResendTime,
    uint32 InId
)

Please use the new constructor that adds support for analytics and better precision

Public function

BufferedPacket

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

Public function

BufferedPacket

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

Please use the new constructor takes in a FInternetAddr

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
)

Deprecated Functions

Name Description

Public function

 

BufferedPacket

(
    uint8* InCopyData,
    uint32 InCountBits,
    float InResendTime,
    uint32 InId
)

Please use the new constructor that adds support for analytics and better precision

Public function

 

BufferedPacket

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

Please use the new constructor takes in a FInternetAddr

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss