Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/NetDriver.h |
Include |
#include "Engine/NetDriver.h" |
struct FPacketSimulationSettings
Holds the packet simulation settings in one place
Name | Description | ||
---|---|---|---|
|
PktDup |
When set, will cause calls to FlushNet to duplicate packets. |
|
|
PktIncomingLagMax |
The maximum delay in milliseconds to add to incoming packets before they are processed. |
|
|
PktIncomingLagMin |
Set a value to add a minimum delay in milliseconds to incoming packets before they are processed. |
|
|
PktIncomingLoss |
The ratio of incoming packets that will be dropped to simulate packet loss |
|
|
PktJitter |
Causes sent packets to have a variable latency that fluctuates from [PktLagMin] to [PktLagMin+PktJitter] |
|
|
PktLag |
When set, will cause calls to FlushNet to delay packets. |
|
|
PktLagMax |
||
|
PktLagMin |
If set lag values will randomly fluctuate between Min and Max. Ignored if PktLag value is set |
|
|
PktLagVariance |
When set, will cause PktLag to use variable lag instead of constant. |
|
|
PktLoss |
When set, will cause calls to FlushNet to drop packets. |
|
|
PktLossMaxSize |
Sets the maximum size of packets in bytes that will be dropped according to the PktLoss setting. |
|
|
PktLossMinSize |
Sets the minimum size of packets in bytes that will be dropped according to the PktLoss setting. |
|
|
PktOrder |
When set, will cause calls to FlushNet to change ordering of packets at random. |
Name | Description | ||
---|---|---|---|
|
ApplySettings ( |
Force new emulation settings and ignore config or cmdline values |
|
|
ConfigHelperBool |
||
|
ConfigHelperInt |
||
|
LoadConfig ( |
Reads in settings from the .ini file @note overwrites all previous settings |
|
|
LoadEmulationProfile ( |
Load a preconfigured emulation profile from the .ini Returns true if the given profile existed |
|
|
ParseHelper |
||
|
ParseSettings |
Reads the settings from a string: command line or an exec |
|
|
ResetSettings() |
||
|
ShouldDropPacketOfSize ( |
Tells if a packet fits the size settings to potentially be dropped |
|
|
ValidateSettings() |
Ensure that settings have proper values |