Public Member Functions | |
virtual void | SetAddress (Mac48Address address) |
virtual void | SetLinkUpCallback (Callback< void > linkUp) |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::AdhocWifiMac. |
virtual void ns3::AdhocWifiMac::Enqueue | ( | Ptr< const Packet > | packet, | |
Mac48Address | to | |||
) | [virtual] |
packet | the packet to send. | |
to | the address to which the packet should be sent. |
The packet should be enqueued in a tx queue, and should be dequeued as soon as the channel access function determines that access is granted to this MAC.
Implements ns3::RegularWifiMac.
static TypeId ns3::AdhocWifiMac::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::AdhocWifiMac.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::RegularWifiMac:
Attributes defined in parent class ns3::WifiMac:
No TraceSources defined for this type.
TraceSources defined in parent class ns3::RegularWifiMac:
TraceSources defined in parent class ns3::WifiMac:
Reimplemented from ns3::RegularWifiMac.
virtual void ns3::AdhocWifiMac::SetAddress | ( | Mac48Address | address | ) | [virtual] |
address | the current address of this MAC layer. |
Reimplemented from ns3::RegularWifiMac.
virtual void ns3::AdhocWifiMac::SetLinkUpCallback | ( | Callback< void > | linkUp | ) | [virtual] |
linkUp | the callback to invoke when the link becomes up. |
Reimplemented from ns3::RegularWifiMac.