Struct SimulatorUtility
Utility methods and types for the simulator pipeline stage.
Syntax
public struct SimulatorUtility
Constructors
SimulatorUtility(Int32, Int32, Int32, Int32)
Declaration
public SimulatorUtility(int packetCount, int maxPacketSize, int packetDelayMs, int packetJitterMs)
Parameters
Type |
Name |
Description |
Int32 |
packetCount |
|
Int32 |
maxPacketSize |
|
Int32 |
packetDelayMs |
|
Int32 |
packetJitterMs |
|
Methods
DelayPacket(ref NetworkPipelineContext, InboundSendBuffer, ref NetworkPipelineStage.Requests, Int64)
Declaration
public bool DelayPacket(ref NetworkPipelineContext ctx, InboundSendBuffer inboundBuffer, ref NetworkPipelineStage.Requests requests, long timestamp)
Parameters
Returns
FuzzPacket(SimulatorUtility.Context*, ref InboundSendBuffer)
Declaration
public void FuzzPacket(SimulatorUtility.Context*ctx, ref InboundSendBuffer inboundBuffer)
Parameters
GetDelayedPacket(ref NetworkPipelineContext, ref InboundSendBuffer, ref NetworkPipelineStage.Requests, Int64)
Declaration
public bool GetDelayedPacket(ref NetworkPipelineContext ctx, ref InboundSendBuffer delayedPacket, ref NetworkPipelineStage.Requests requests, long currentTimestamp)
Parameters
Returns
GetEmptyDataSlot(Byte*, ref Int32, ref Int32)
Declaration
public bool GetEmptyDataSlot(byte *processBufferPtr, ref int packetPayloadOffset, ref int packetDataOffset)
Parameters
Type |
Name |
Description |
Byte* |
processBufferPtr |
|
Int32 |
packetPayloadOffset |
|
Int32 |
packetDataOffset |
|
Returns
InitializeContext(SimulatorUtility.Parameters, Byte*)
Declaration
public static void InitializeContext(SimulatorUtility.Parameters param, byte *sharedProcessBuffer)
Parameters
ShouldDropPacket(SimulatorUtility.Context*, SimulatorUtility.Parameters, Int64)
Declaration
public bool ShouldDropPacket(SimulatorUtility.Context*ctx, SimulatorUtility.Parameters param, long timestamp)
Parameters
Returns