Status code for association response. More...
#include "status-code.h"
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... | |
Status code for association response.
Definition at line 31 of file status-code.h.
ns3::StatusCode::StatusCode | ( | ) |
Definition at line 25 of file status-code.cc.
Buffer::Iterator ns3::StatusCode::Deserialize | ( | Buffer::Iterator | start | ) |
start | an iterator which points to where the status code should be 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().
uint32_t ns3::StatusCode::GetSerializedSize | ( | ) | const |
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().
bool ns3::StatusCode::IsSuccess | ( | ) | const |
Return whether the status code is success.
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().
Buffer::Iterator ns3::StatusCode::Serialize | ( | Buffer::Iterator | start | ) | const |
start | an iterator which points to where the status code should be written |
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().
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().
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().
|
private |
status code
Definition at line 81 of file status-code.h.
Referenced by Deserialize(), IsSuccess(), Serialize(), SetFailure(), and SetSuccess().