#include <mac-low.h>
Public Member Functions | |
void | SetRxCallback (Callback< void, Ptr< Packet >, const WifiMacHeader * > callback) |
void | RegisterDcfListener (MacLowDcfListener *listener) |
Time | CalculateTransmissionTime (Ptr< const Packet > packet, WifiMacHeader const *hdr, MacLowTransmissionParameters const ¶meters) const |
void | StartTransmission (Ptr< const Packet > packet, WifiMacHeader const *hdr, MacLowTransmissionParameters parameters, MacLowTransmissionListener *listener) |
void | ReceiveOk (Ptr< Packet > packet, double rxSnr, WifiMode txMode, WifiPreamble preamble) |
void | ReceiveError (Ptr< const Packet > packet, double rxSnr) |
Private Member Functions | |
virtual void | DoDispose (void) |
Time ns3::MacLow::CalculateTransmissionTime | ( | Ptr< const Packet > | packet, | |
WifiMacHeader const * | hdr, | |||
MacLowTransmissionParameters const & | parameters | |||
) | const |
packet | to send (does not include the 802.11 MAC header and checksum) | |
hdr | header associated to the packet to send. | |
parameters | transmission parameters of packet. |
virtual void ns3::MacLow::DoDispose | ( | void | ) | [private, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
packet | packet received. | |
rxSnr | snr of packet received. |
void ns3::MacLow::ReceiveOk | ( | Ptr< Packet > | packet, | |
double | rxSnr, | |||
WifiMode | txMode, | |||
WifiPreamble | preamble | |||
) |
packet | packet received | |
rxSnr | snr of packet received | |
txMode | transmission mode of packet received | |
preamble | type of preamble used for the packet received |
void ns3::MacLow::RegisterDcfListener | ( | MacLowDcfListener * | listener | ) |
listener | listen to NAV events for every incoming and outgoing packet. |
callback | the callback which receives every incoming packet. |
void ns3::MacLow::StartTransmission | ( | Ptr< const Packet > | packet, | |
WifiMacHeader const * | hdr, | |||
MacLowTransmissionParameters | parameters, | |||
MacLowTransmissionListener * | listener | |||
) |
packet | packet to send | |
hdr | 802.11 header for packet to send | |
parameters | the transmission parameters to use for this packet. | |
listener | listen to transmission events. |