Status code for association response. More...
#include "status-code.h"
Public Member Functions | |
StatusCode () | |
Buffer::Iterator | Deserialize (Buffer::Iterator start) |
uint32_t | GetSerializedSize (void) const |
bool | IsSuccess (void) const |
Return whether the status code is success. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator start) const |
void | SetFailure (void) |
Set success bit to 1 (failure). More... | |
void | SetSuccess (void) |
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 visualizer.core::start().
Referenced by ns3::MgtAssocResponseHeader::Deserialize(), and ns3::MgtAddBaResponseHeader::Deserialize().
uint32_t ns3::StatusCode::GetSerializedSize | ( | void | ) | 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::MgtAssocResponseHeader::GetSerializedSize(), and ns3::MgtAddBaResponseHeader::GetSerializedSize().
bool ns3::StatusCode::IsSuccess | ( | void | ) | const |
Return whether the status code is success.
Definition at line 42 of file status-code.cc.
References m_code.
Referenced by ns3::QosTxop::GotAddBaResponse(), ns3::operator<<(), and ns3::StaWifiMac::Receive().
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 visualizer.core::start().
Referenced by ns3::MgtAssocResponseHeader::Serialize(), and ns3::MgtAddBaResponseHeader::Serialize().
void ns3::StatusCode::SetFailure | ( | void | ) |
Set success bit to 1 (failure).
Definition at line 36 of file status-code.cc.
References m_code.
Referenced by ns3::ApWifiMac::SendAssocResp().
void ns3::StatusCode::SetSuccess | ( | void | ) |
Set success bit to 0 (success).
Definition at line 30 of file status-code.cc.
References m_code.
Referenced by ns3::RegularWifiMac::SendAddBaResponse(), and ns3::ApWifiMac::SendAssocResp().
|
private |
status code
Definition at line 82 of file status-code.h.
Referenced by Deserialize(), IsSuccess(), Serialize(), SetFailure(), and SetSuccess().