nn::rdt::CTR::Receiver::SetPacketLossRatio Member Function

Syntax

void SetPacketLossRatio(
     int per
);

Arguments

Name Description
in per Provide a value such that 0 <= per <= 100.

Return Values

None.

Description

Virtually sets the packet loss ratio (for debugging). This function may be removed in a future release without notice.

If a value other than zero is set for the packet loss ratio, std::rand will be called internally by the rdt library to determine whether to simulate packet loss. Therefore be sure to call std::srand to set a suitable random seed when using this function.

Revision History

2011/07/11
Added information about calling the Standard C library functions srand and rand.
2010/06/14
Initial version.

CONFIDENTIAL