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. | |
| Buffer::Iterator | Serialize (Buffer::Iterator start) const |
| void | SetFailure () |
| Set success bit to 1 (failure). | |
| void | SetSuccess () |
| Set success bit to 0 (success). | |
Private Attributes | |
| uint16_t | m_code |
| status code | |
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.
Referenced by ns3::MgtAddBaResponseHeader::Deserialize(), ns3::MgtAssocResponseHeader::DeserializeFromPerStaProfileImpl(), and ns3::MgtAssocResponseHeader::DeserializeImpl().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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.
Referenced by ns3::MgtAddBaResponseHeader::Serialize(), ns3::MgtAssocResponseHeader::SerializeImpl(), and ns3::MgtAssocResponseHeader::SerializeInPerStaProfileImpl().
Here is the caller graph for this function:| 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:| 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::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), ns3::ApWifiMac::GetAssocResp(), and ns3::HtFrameExchangeManager::SendAddBaResponse().
Here is the caller graph for this function:
|
private |
status code
Definition at line 81 of file status-code.h.
Referenced by Deserialize(), IsSuccess(), Serialize(), SetFailure(), and SetSuccess().