PacketHandler::Incoming

Processes incoming packets at the [PacketHandler](API\Runtime\PacketHandler\PacketHandler) level, before any [UNetConnection](API\Runtime\Engine\Engine\UNetConnection) processing takes place on the packet.

Windows
MacOS
Linux

References

Module

PacketHandler

Header

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

Include

#include "PacketHandler.h"

Syntax

const ProcessedPacket Incoming
(
    uint8 * Packet,
    int32 CountBytes
)

Remarks

Processes incoming packets at the PacketHandler level, before any UNetConnection processing takes place on the packet.

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

CountBytes

The size of the packet data in bytes

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