A Discrete-Event Network Simulator
API
ns3::WifiMacQueue::Item Struct Reference

A struct that holds information about a packet for putting in a packet queue. More...

#include "wifi-mac-queue.h"

+ Collaboration diagram for ns3::WifiMacQueue::Item:

Public Member Functions

 Item (Ptr< const Packet > packet, const WifiMacHeader &hdr, Time tstamp)
 Create a struct with the given parameters. More...
 

Public Attributes

WifiMacHeader hdr
 Wifi MAC header associated with the packet. More...
 
Ptr< const Packetpacket
 Actual packet. More...
 
Time tstamp
 timestamp when the packet arrived at the queue More...
 

Detailed Description

A struct that holds information about a packet for putting in a packet queue.

Definition at line 237 of file wifi-mac-queue.h.

Constructor & Destructor Documentation

ns3::WifiMacQueue::Item::Item ( Ptr< const Packet packet,
const WifiMacHeader hdr,
Time  tstamp 
)

Create a struct with the given parameters.

Parameters
packet
hdr
tstamp

Definition at line 34 of file wifi-mac-queue.cc.

Member Data Documentation

WifiMacHeader ns3::WifiMacQueue::Item::hdr

Wifi MAC header associated with the packet.

Definition at line 250 of file wifi-mac-queue.h.

Referenced by ns3::WifiMacQueue::Dequeue(), and ns3::WifiMacQueue::Peek().

Ptr<const Packet> ns3::WifiMacQueue::Item::packet

Actual packet.

Definition at line 249 of file wifi-mac-queue.h.

Referenced by ns3::WifiMacQueue::Dequeue(), and ns3::WifiMacQueue::Peek().

Time ns3::WifiMacQueue::Item::tstamp

timestamp when the packet arrived at the queue

Definition at line 251 of file wifi-mac-queue.h.


The documentation for this struct was generated from the following files: