DESERT 3.5.1
Loading...
Searching...
No Matches
buffer_element Struct Reference

#include <sun-ipr-common-structures.h>

Public Member Functions

 buffer_element ()
 
 buffer_element (Packet *_p, int _id_pkt_=0, double _t_reception_=Scheduler::instance().clock(), double _t_last_tx_=0, int _num_retx_=0)
 

Public Attributes

Packet * p_
 
int id_pkt_
 
double t_reception_
 
double t_last_tx_
 
int num_attempts_
 
unsigned int retx_
 

Detailed Description

buffer_element describes an entry in the buffer used by SUN.

Definition at line 103 of file sun-ipr-common-structures.h.

Constructor & Destructor Documentation

◆ buffer_element() [1/2]

buffer_element::buffer_element ( )
inline

Constructor for buffer_element.

Definition at line 115 of file sun-ipr-common-structures.h.

◆ buffer_element() [2/2]

buffer_element::buffer_element ( Packet *  _p,
int  _id_pkt_ = 0,
double  _t_reception_ = Scheduler::instance().clock(),
double  _t_last_tx_ = 0,
int  _num_retx_ = 0 
)
inline

Constructor for buffer_element.

Definition at line 118 of file sun-ipr-common-structures.h.

Member Data Documentation

◆ id_pkt_

int buffer_element::id_pkt_

ID of the packet buffered.

Definition at line 106 of file sun-ipr-common-structures.h.

◆ num_attempts_

int buffer_element::num_attempts_

Number of transmission attempts.

Definition at line 109 of file sun-ipr-common-structures.h.

◆ p_

Packet* buffer_element::p_

Pointer to the packet buffered.

Definition at line 105 of file sun-ipr-common-structures.h.

◆ retx_

unsigned int buffer_element::retx_

Real retransmission counter: incremented only if packet is sent donwlayer.

Definition at line 113 of file sun-ipr-common-structures.h.

◆ t_last_tx_

double buffer_element::t_last_tx_

Time instant of the last transmission attempt.

Definition at line 108 of file sun-ipr-common-structures.h.

◆ t_reception_

double buffer_element::t_reception_

Time instant in which the packet was buffered.

Definition at line 107 of file sun-ipr-common-structures.h.


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