UClientUnitTest::NotifyReceivedRawPacket

If EUnitTestFlags::CaptureReceiveRaw is set, this is triggered for every packet received from the server NOTE: Data is a uint8 array, of size 'NETWORK_MAX_PACKET', and elements can safely be modified

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ClientUnitTest.h

Include

#include "ClientUnitTest.h"

Syntax

virtual void NotifyReceivedRawPacket
(
    void * Data,
    int32 & Count
)

Remarks

If EUnitTestFlags::CaptureReceiveRaw is set, this is triggered for every packet received from the server NOTE: Data is a uint8 array, of size 'NETWORK_MAX_PACKET', and elements can safely be modified

Parameters

Parameter

Description

Data

The raw data/packet being received (this data can safely be modified, up to length 'NETWORK_MAX_PACKET')

Count

The amount of data received (if 'Data' is modified, this should be modified to reflect the new length)

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