class EmulationDevice : public nn::nex::RootObject
Emulates network states. Feature for debugging.
There are two emulation devices defined for NEX, called InputEmulationDevice
and OutputEmulationDevice
. These class objects can be obtained from the RootTransport
singleton in the following way.
RootTransport::GetInstance() -> GetInputEmulationDevice()
RootTransport::GetInstance() -> GetOutputEmulationDevice()
Configure the settings after you run the Enable
method.
SetLatency
|
Sets the latency when sending, in milliseconds. | |
---|---|---|
SetJitter
|
Sets the jitter in the latency, in milliseconds. | |
SetBandwidth
|
Specifies the constraint on bandwidth speed, in bits per second (bps). | |
GetLatency
|
Gets the latency when sending, in milliseconds. | |
GetJitter
|
Gets the jitter in the latency, in milliseconds. | |
GetBandwidth
|
Gets the constraint on bandwidth speed, in bps. | |
SetPacketDropProbability
|
Sets the packet loss rate. | |
GetPacketDropProbability
|
Gets the packet loss rate. | |
IsEnabled
|
Determines whether network emulation is enabled. | |
V |
Enable
|
Enables network emulation. |
nn::nex::RootObject
nn::nex::EmulationDevice
EmulationDevice
InputEmulationDevice
OutputEmulationDevice
RootTransport::GetInputEmulationDevice
RootTransport::GetOutputEmulationDevice
CONFIDENTIAL