#include <NetworkEmulation.h>
Public Types | |
enum | ConnectionTypes { kPerfect = 0, kModem28k, kModem56k, kDSL512MB_Down128Up, kLAN } |
Static Public Member Functions | |
static void | SetEnabled (const bool enable=false) |
static bool | GetEnabled (void) |
static void | SetConnection (const ConnectionTypes type=kPerfect, const bool enable=true) |
static void | SetPacketLoss (const float percent=0) |
static float | GetPacketLoss (void) |
static void | SetMaximumOutputBandwidth (const int bytesPerSecond=0) |
static int | GetMaximumOutputBandwidth (void) |
static void | SetMaximumInputBandwidth (const int bytesPerSecond=0) |
static int | GetMaximumInputBandwidth (void) |
static void | SetAverageLatency (const float milliSeconds=0.0f) |
static float | GetAverageLatency (void) |
static void | SetJitter (const float milliSeconds=0.0f) |
static float | GetJitter (void) |
|
Enumeration for the SetConnection function for standard types of connection |
|
Reads the configuration value set by SetAverageLatency()
|
|
Allows the network emulation activation status to be read
|
|
Reads the configuration value set by SetJitter()
|
|
Reads the configuration value set by GetMaximumInputBandwidth().
|
|
Reads the configuration value set by SetMaximumOutputBandwidth()
|
|
This allows the configured emulated packet loss to be read.
|
|
Sets the average packet latency, this is half round trip time.
|
|
Allows the network emulation parameters to be set quickly for various standard testing types
|
|
Allows the network emulation to be turned on or off
|
|
Allows the amount by which the latency value can fluctuate
|
|
Sets the maximum input bandwidth for emulation.
|
|
Sets the maximum output bandwidth for emulation.
|
|
This sets the emulated packet loss for the network layer.
|