A Discrete-Event Network Simulator
API
ns3::StatusCode Class Reference

Status code for association response. More...

#include "status-code.h"

+ Collaboration diagram for ns3::StatusCode:

Public Member Functions

 StatusCode ()
 
Buffer::Iterator Deserialize (Buffer::Iterator start)
 
uint32_t GetSerializedSize () const
 
bool IsSuccess () const
 Return whether the status code is success. More...
 
Buffer::Iterator Serialize (Buffer::Iterator start) const
 
void SetFailure ()
 Set success bit to 1 (failure). More...
 
void SetSuccess ()
 Set success bit to 0 (success). More...
 

Private Attributes

uint16_t m_code
 status code More...
 

Detailed Description

Status code for association response.

Definition at line 31 of file status-code.h.

Constructor & Destructor Documentation

◆ StatusCode()

ns3::StatusCode::StatusCode ( )

Definition at line 25 of file status-code.cc.

Member Function Documentation

◆ Deserialize()

Buffer::Iterator ns3::StatusCode::Deserialize ( Buffer::Iterator  start)
Parameters
startan iterator which points to where the status code should be read.
Returns
the number of bytes read.

This method is used to re-create a status code from the byte buffer. The data read is expected to match bit-for-bit the representation of this header in real networks.

Definition at line 61 of file status-code.cc.

References m_code, and two-ray-to-three-gpp-ch-calibration::start.

Referenced by ns3::MgtAddBaResponseHeader::Deserialize(), ns3::MgtAssocResponseHeader::DeserializeFromPerStaProfileImpl(), and ns3::MgtAssocResponseHeader::DeserializeImpl().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::StatusCode::GetSerializedSize ( ) const
Returns
the expected size of the status code.

This method should return the number of bytes which are needed to store the status code data by Serialize.

Definition at line 48 of file status-code.cc.

Referenced by ns3::MgtAddBaResponseHeader::GetSerializedSize(), ns3::MgtAssocResponseHeader::GetSerializedSizeImpl(), and ns3::MgtAssocResponseHeader::GetSerializedSizeInPerStaProfileImpl().

+ Here is the caller graph for this function:

◆ IsSuccess()

bool ns3::StatusCode::IsSuccess ( ) const

Return whether the status code is success.

Returns
true if success, false otherwise

Definition at line 42 of file status-code.cc.

References m_code.

Referenced by ns3::ApWifiMac::GetLinkIdStaAddrMap(), ns3::QosTxop::GotAddBaResponse(), ns3::operator<<(), ns3::StaWifiMac::ReceiveAssocResp(), and ns3::ApWifiMac::SetAid().

+ Here is the caller graph for this function:

◆ Serialize()

Buffer::Iterator ns3::StatusCode::Serialize ( Buffer::Iterator  start) const
Parameters
startan iterator which points to where the status code should be written
Returns
Buffer::Iterator

This method is used to store a status code into the byte buffer. The data written is expected to match bit-for-bit the representation of this header in a real network.

Definition at line 54 of file status-code.cc.

References m_code, and two-ray-to-three-gpp-ch-calibration::start.

Referenced by ns3::MgtAddBaResponseHeader::Serialize(), ns3::MgtAssocResponseHeader::SerializeImpl(), and ns3::MgtAssocResponseHeader::SerializeInPerStaProfileImpl().

+ Here is the caller graph for this function:

◆ SetFailure()

void ns3::StatusCode::SetFailure ( )

Set success bit to 1 (failure).

Definition at line 36 of file status-code.cc.

References m_code.

Referenced by ns3::ApWifiMac::GetAssocResp().

+ Here is the caller graph for this function:

◆ SetSuccess()

void ns3::StatusCode::SetSuccess ( )

Set success bit to 0 (success).

Definition at line 30 of file status-code.cc.

References m_code.

Referenced by AmpduAggregationTest::EstablishAgreement(), ns3::ApWifiMac::GetAssocResp(), and ns3::HtFrameExchangeManager::SendAddBaResponse().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_code

uint16_t ns3::StatusCode::m_code
private

status code

Definition at line 81 of file status-code.h.

Referenced by Deserialize(), IsSuccess(), Serialize(), SetFailure(), and SetSuccess().


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