Method Create
Create(string, string, int, int, int, int)
Utility function to create a configuration at runtime.
Declaration
public static NetworkSimulatorPreset Create(string name, string description = "", int packetDelayMs = 0, int packetJitterMs = 0, int packetLossInterval = 0, int packetLossPercent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the configuration. |
string | description | Description of the configuration. |
int | packetDelayMs | Value for the packet delay in milliseconds. |
int | packetJitterMs | Value for the network jitter in milliseconds. |
int | packetLossInterval | Value for the packet loss interval. |
int | packetLossPercent | Value for the packet loss percentage. |
Returns
Type | Description |
---|---|
NetworkSimulatorPreset | A valid simulation configuration. |