Thunderbots Project
Loading...
Searching...
No Matches
ProtoTracker Class Reference

Public Member Functions

 ProtoTracker (const std::string &type)
 
void send (uint64_t seq_num)
 
bool isLastValid ()
 
float getLossRate ()
 

Constructor & Destructor Documentation

◆ ProtoTracker()

ProtoTracker ( const std::string &  type)

Tracks recent proto loss given the sequence numbers of received protos

Parameters
typeThe name of the type of protos being tracked

Member Function Documentation

◆ getLossRate()

float getLossRate ( )
Returns
a float equal to the proto loss rate

◆ isLastValid()

bool isLastValid ( )
Returns
a boolean indicating whether the last received proto was valid

◆ send()

void send ( uint64_t  seq_num)

When a new sequence number is sent, the ProtoTracker updates the proto tracking

Parameters
seq_numThe sequence number of the newly received proto

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