nn::nex::EmulationDevice Class

Syntax

class EmulationDevice : public nn::nex::RootObject

Description

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.

Member Functions

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.

Class Hierarchy

nn::nex::RootObject
  nn::nex::EmulationDevice

See Also

EmulationDevice
InputEmulationDevice
OutputEmulationDevice
RootTransport::GetInputEmulationDevice
RootTransport::GetOutputEmulationDevice

Revision History

2012/06/11
Initial version.

CONFIDENTIAL