PacketHandler::Outgoing

Processes outgoing packets at the [PacketHandler](API\Runtime\PacketHandler\PacketHandler) level, after all [UNetConnection](API\Runtime\Engine\Engine\UNetConnection) processing.

Windows
MacOS
Linux

References

Module

PacketHandler

Header

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

Include

#include "PacketHandler.h"

Syntax

const ProcessedPacket Outgoing
(
    uint8 * Packet,
    int32 CountBits,
    FOutPacketTraits & Traits
)

Remarks

Processes outgoing packets at the PacketHandler level, after all UNetConnection processing.

Use this for more complex changes to packets, such as compression/encryption, but be aware that compatibility problems with other HandlerComponent's are more likely.

Returns

Returns the final packet

Parameters

Parameter

Description

Packet

The packet data to be processed

CountBits

The size of the packet data in bits

Traits

Traits for the packet, passed down from the NetConnection

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