![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PacketAudit.h>
Classes | |
| struct | FScopedAuditAccess |
Static Public Member Functions | |
| static NETCORE_API void | Init () |
| static NETCORE_API void | Destruct () |
| static void | AddStage (FString StageName, FBitWriter &OutPacket, bool bByteAligned=false) |
| static void | CheckStage (FString StageName, FBitReader &InPacket, bool bByteAligned=false) |
| static void | NotifyLowLevelSend (FBitWriter &OutPacket) |
| static void | NotifyLowLevelReceive (FBitReader &InPacket) |
| static void | NotifyLowLevelSend (uint8 *Data, uint32 DataLen, uint32 DataLenBits) |
| static void | NotifyLowLevelReceive (uint8 *Data, uint32 DataLen) |
Protected Member Functions | |
| NETCORE_API void | AddStage_Internal (FString StageName, FBitWriter &OutPacket, bool bByteAligned) |
| NETCORE_API void | CheckStage_Internal (FString StageName, FBitReader &InPacket, bool bByteAligned) |
| NETCORE_API void | NotifyLowLevelSend_Internal (FBitWriter &OutPacket) |
| NETCORE_API void | NotifyLowLevelReceive_Internal (FBitReader &InPacket) |
| NETCORE_API void | DumpAuditData (FScopedAuditAccess &AuditLock, uint32 InPacketCRC=0) |
Static Protected Member Functions | |
| static NETCORE_API uint32 | PacketCRC (uint8 *Data, uint32 DataLenBits) |
Uses inter-process-communication, to audit every stage of packet processing, for verifying that packets are processing properly, and that the client/server are in sync at every stage of reading/writing.
Since this relies on IPC, it is only suitable for testing on a single machine.
IMPORTANT: Only supports interaction between a single server, and a single client.
|
inlinestatic |
On the send side, marks a named stage during packet writing, which should be audited on the receive side.
| StageName | The unique name to provide this stage of packet writing |
| OutPacket | The packet the data is being written to - used for gathering audit information |
| bByteAligned | Whether or not to treat the packet as if it is byte aligned (used in rare circumstances) |
|
protected |
|
inlinestatic |
On the receive side, checks to see that a named stage was marked for auditing on the send side, and audits the packet data.
| StageName | The unique name to this stage of packet processing |
| InPacket | The packet the data is being read from - used for gathering audit information |
| bByteAligned | Whether or not to treat the packet as if it is byte aligned (used in rare circumstances) |
|
protected |
|
static |
Destroy GPacketAuditor
|
protected |
Dumps the collected packet audit data to the log
|
static |
Initialize GPacketAudtor
|
inlinestatic |
Low level netcode hook, notifying of incoming packets
| InPacket | The current incoming packet |
|
protected |
|
inlinestatic |
Low level netcode hook, notifying of outgoing packets
| OutPacket | The current outgoing packet |
|
inlinestatic |
|
protected |
Gets the CRC of a packet, zeroing any unwritten bits in the last byte beforehand.
| Data | The packet data |
| DataLenBits | The length of the data, in bits |
|
protected |
Mutex used for enforcing a single instance of client/server packet auditing
|
protected |
Shared memory region for packet receives
|
protected |
Shared memory region for packet sends
|
protected |
Mutex used for exclusive access to shared memory