Skip to main content

Unity.Networking.Transport.Utilities.SimulatorUtility

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public struct SimulatorUtility

Constructors#

SimulatorUtility(Int32, Int32, Int32, Int32)#

Declaration#

public SimulatorUtility(int packetCount, int maxPacketSize, int packetDelayMs, int packetJitterMs)

Parameters#

TypeNameDescription
System.Int32packetCount
System.Int32maxPacketSize
System.Int32packetDelayMs
System.Int32packetJitterMs

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#

TypeNameDescription
NetworkPipelineContextctx
InboundSendBufferinboundBuffer
NetworkPipelineStage.Requestsrequests
System.Int64timestamp

Returns#

TypeDescription
System.Boolean

FuzzPacket(SimulatorUtility.Context*, ref InboundSendBuffer)#

Declaration#

public void FuzzPacket(SimulatorUtility.Context*ctx, ref InboundSendBuffer inboundBuffer)

Parameters#

TypeNameDescription
SimulatorUtility.Context*ctx
InboundSendBufferinboundBuffer

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#

TypeNameDescription
NetworkPipelineContextctx
InboundSendBufferdelayedPacket
NetworkPipelineStage.Requestsrequests
System.Int64currentTimestamp

Returns#

TypeDescription
System.Boolean

GetEmptyDataSlot(Byte*, ref Int32, ref Int32)#

Declaration#

public bool GetEmptyDataSlot(byte *processBufferPtr, ref int packetPayloadOffset, ref int packetDataOffset)

Parameters#

TypeNameDescription
System.Byte*processBufferPtr
System.Int32packetPayloadOffset
System.Int32packetDataOffset

Returns#

TypeDescription
System.Boolean

InitializeContext(SimulatorUtility.Parameters, Byte*)#

Declaration#

public static void InitializeContext(SimulatorUtility.Parameters param, byte *sharedProcessBuffer)

Parameters#

TypeNameDescription
SimulatorUtility.Parametersparam
System.Byte*sharedProcessBuffer

ShouldDropPacket(SimulatorUtility.Context*, SimulatorUtility.Parameters, Int64)#

Declaration#

public bool ShouldDropPacket(SimulatorUtility.Context*ctx, SimulatorUtility.Parameters param, long timestamp)

Parameters#

TypeNameDescription
SimulatorUtility.Context*ctx
SimulatorUtility.Parametersparam
System.Int64timestamp

Returns#

TypeDescription
System.Boolean