Module |
|
Header |
/Engine/Source/Runtime/Net/Core/Public/Net/Core/Misc/PacketAudit.h |
Include |
#include "Net/Core/Misc/PacketAudit.h" |
class FPacketAudit
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.
Name | Description | ||
---|---|---|---|
|
FPlatformProces... |
GameMutex |
Mutex used for enforcing a single instance of client/server packet auditing |
|
ReceiveSharedMemory |
Shared memory region for packet receives |
|
|
SendSharedMemory |
Shared memory region for packet sends |
|
|
FPlatformProces... |
SharedMutex |
Mutex used for exclusive access to shared memory |
No constructors are accessible with public or protected access.
No destructors are accessible with public or protected access.
Name | Description | ||
---|---|---|---|
|
AddStage ( |
On the send side, marks a named stage during packet writing, which should be audited on the receive side. |
|
|
AddStage_Internal ( |
||
|
CheckStage ( |
On the receive side, checks to see that a named stage was marked for auditing on the send side, and audits the packet data. |
|
|
CheckStage_Internal ( |
||
|
Destruct() |
Destroy GPacketAuditor |
|
|
DumpAuditData ( |
Dumps the collected packet audit data to the log |
|
|
Init() |
Initialize GPacketAudtor |
|
|
NotifyLowLevelReceive ( |
Low level netcode hook, notifying of incoming packets |
|
|
NotifyLowLevelReceive |
||
|
NotifyLowLevelReceive_Internal ( |
||
|
NotifyLowLevelSend ( |
Low level netcode hook, notifying of outgoing packets |
|
|
NotifyLowLevelSend |
Deprecate, once the pipeline uses FBitReader/Writers all the way |
|
|
NotifyLowLevelSend_Internal ( |
||
|
PacketCRC |
Gets the CRC of a packet, zeroing any unwritten bits in the last byte beforehand. |
Name |
Description |
|
---|---|---|
|
FScopedAuditAccess |
Provides scoped exclusive access to GSendPacketAudits and GReceivePacketAudits within the .cpp file |