Public Member Functions

ns3::Backoff Class Reference

The backoff class is used for calculating backoff times when many net devices can write to the same channel. More...

#include <backoff.h>

List of all members.

Public Member Functions

Time GetBackoffTime ()
void ResetBackoffTime ()
bool MaxRetriesReached ()
void IncrNumRetries ()

Detailed Description

The backoff class is used for calculating backoff times when many net devices can write to the same channel.


Member Function Documentation

Time ns3::Backoff::GetBackoffTime (  ) 
Returns:
The amount of time that the net device should wait before trying to retransmit the packet
void ns3::Backoff::IncrNumRetries (  ) 

Increments the number of retries by 1.

bool ns3::Backoff::MaxRetriesReached (  ) 
Returns:
True if the maximum number of retries has been reached
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.


The documentation for this class was generated from the following file: