nn::rdt::CTR::Sender::SetPacketLossRatio Member Function
void SetPacketLossRatio(
int per
);
| Name | Description | |
|---|---|---|
| in | per | Provide a value such that 0 <= per <= 100. |
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.
srand and rand.CONFIDENTIAL