The backoff class is used for calculating backoff times when many net devices can write to the same channel. More...
#include <backoff.h>
Public Member Functions | |
Time | GetBackoffTime () |
void | ResetBackoffTime () |
bool | MaxRetriesReached () |
void | IncrNumRetries () |
The backoff class is used for calculating backoff times when many net devices can write to the same channel.
Time ns3::Backoff::GetBackoffTime | ( | ) |
void ns3::Backoff::IncrNumRetries | ( | ) |
Increments the number of retries by 1.
bool ns3::Backoff::MaxRetriesReached | ( | ) |
void ns3::Backoff::ResetBackoffTime | ( | ) |
Indicates to the backoff object that the last packet was successfully transmitted and that the number of retries should be reset to 0.