ReliabilityHandlerComponent

Symmetric Stream cipher.

Windows
MacOS
Linux

Inheritance Hierarchy

HandlerComponent

ReliabilityHandlerComponent

References

Module

ReliabilityHandlerComponent

Header

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

Include

#include "ReliabilityHandlerComponent.h"

Syntax

class ReliabilityHandlerComponent : public HandlerComponent

Remarks

Symmetric Stream cipher.

Variables

Name Description

Protected variable

TArray< Buffere...

 

BufferedPackets

Buffered Packets in case they need to be resent

Protected variable

double

 

LastResendTime

Last time we resent UNACKED packets

Protected variable

uint32

 

LocalPacketID

Latest Packet ID

Protected variable

uint32

 

LocalPacketIDACKED

Latest Packet ID that was ACKED

Protected variable

uint32

 

RemotePacketID

Latest Remote Packet ID

Protected variable

uint32

 

RemotePacketIDACKED

Latest Remote Packet ID that was ACKED

Protected variable

double

 

ResendResolutionTime

How long to wait before resending an UNACKED packet

Constructors

Name Description

Public function

ReliabilityHandlerComponent()

Initializes default data

Functions

Name Description

Public function

void

 

QueueHandlerPacketForResending

(
    HandlerComponent* InComponent,
    uint8* Packet,
    int32 CountBits,
    FOutPacketTraits& Traits
)

Queues a packet sent through SendHandlerPacket, for resending

Public function

void

 

QueuePacketForResending

(
    uint8* Packet,
    int32 CountBits,
    FOutPacketTraits& Traits
)

Queues a packet for resending

Overridden from HandlerComponent

Name Description

Public function Virtual Const

void

 

CountBytes

(
    FArchive& Ar
)

Public function Virtual Const

int32

 

GetReservedPacketBits()

Returns the amount of reserved packet/protocol bits expected from this component.

Public function Virtual

void

 

Incoming

(
    FBitReader& Packet
)

Handles incoming packets

Public function Virtual

void

 

IncomingConnectionless

(
    const TSharedPtr< const FInternetAd...,
    FBitReader& Packet
)

Handles incoming packets not associated with a UNetConnection

Public function Virtual

void

 

Initialize()

Initialization functionality should be placed here

Public function Virtual Const

bool

 

IsValid()

Return whether this handler is valid

Public function Virtual

void

 

Outgoing

(
    FBitWriter& Packet,
    FOutPacketTraits& Traits
)

Handles any outgoing packets

Public function Virtual

void

 

OutgoingConnectionless

(
    const TSharedPtr< const FInternetAd...,
    FBitWriter& Packet,
    FOutPacketTraits& Traits
)

Handles any outgoing packets not associated with a UNetConnection

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Tick functionality should be placed here

Deprecated Functions

Name Description

Public function

void

 

QueueHandlerPacketForResending

(
    HandlerComponent* InComponent,
    uint8* Packet,
    int32 CountBits
)

Use the PacketTraits version for sending packets with additional flags and options

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