ARQ header implementation contains the sequence number related to the packet in question. More...
#include "satellite-arq-header.h"
Public Member Functions | |
SatArqHeader () | |
Constructor. More... | |
~SatArqHeader () | |
Destructor for SatArqHeader. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
Deserializes information from buffer to this instance of SatArqHeader. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the type ID of instance. More... | |
uint8_t | GetSeqNo () const |
Get sequence number. More... | |
virtual uint32_t | GetSerializedSize (void) const |
Get serialized size of SatArqHeader. More... | |
virtual void | Print (std::ostream &os) const |
Print time stamp of this instance of SatArqHeader. More... | |
virtual void | Serialize (Buffer::Iterator start) const |
Serializes information to buffer from this instance of SatArqHeader. More... | |
void | SetSeqNo (uint8_t seqNo) |
Set sequence number. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
uint8_t | m_seqNo |
Sequence number represented by one Byte. More... | |
ARQ header implementation contains the sequence number related to the packet in question.
Sequence number is identified with one byte, thus it may range between 0 - 255.
Definition at line 41 of file satellite-arq-header.h.
ns3::SatArqHeader::SatArqHeader | ( | ) |
Constructor.
Definition at line 34 of file satellite-arq-header.cc.
ns3::SatArqHeader::~SatArqHeader | ( | ) |
Destructor for SatArqHeader.
Definition at line 39 of file satellite-arq-header.cc.
|
virtual |
Deserializes information from buffer to this instance of SatArqHeader.
start | Buffer from which the information is deserialized |
Definition at line 67 of file satellite-arq-header.cc.
References GetSerializedSize(), and m_seqNo.
|
virtual |
Get the type ID of instance.
Definition at line 83 of file satellite-arq-header.cc.
References GetTypeId().
uint8_t ns3::SatArqHeader::GetSeqNo | ( | ) | const |
Get sequence number.
Definition at line 89 of file satellite-arq-header.cc.
References m_seqNo.
Referenced by ns3::SatGenericStreamEncapsulatorArq::ReceivePdu(), and ns3::SatReturnLinkEncapsulatorArq::ReceivePdu().
|
virtual |
Get serialized size of SatArqHeader.
Definition at line 52 of file satellite-arq-header.cc.
Referenced by Deserialize().
|
static |
Get the type ID.
Definition at line 44 of file satellite-arq-header.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Print time stamp of this instance of SatArqHeader.
&os | Output stream to which tag timestamp is printed. |
Definition at line 77 of file satellite-arq-header.cc.
References m_seqNo.
|
virtual |
Serializes information to buffer from this instance of SatArqHeader.
start | Buffer in which the information is serialized |
Definition at line 59 of file satellite-arq-header.cc.
References m_seqNo.
void ns3::SatArqHeader::SetSeqNo | ( | uint8_t | seqNo | ) |
Set sequence number.
seqNo | Sequence number |
Definition at line 96 of file satellite-arq-header.cc.
References m_seqNo.
Referenced by ns3::SatGenericStreamEncapsulatorArq::NotifyTxOpportunity(), and ns3::SatReturnLinkEncapsulatorArq::NotifyTxOpportunity().
|
private |
Sequence number represented by one Byte.
Definition at line 107 of file satellite-arq-header.h.
Referenced by Deserialize(), GetSeqNo(), Print(), Serialize(), and SetSeqNo().