A Discrete-Event Network Simulator
API
qos-blocked-destinations.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2005, 2009 INRIA
4  * Copyright (c) 2009 MIRKO BANCHI
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Mirko Banchi <mk.banchi@gmail.com>
20  */
21 
22 #ifndef QOS_BLOCKED_DESTINATIONS_H
23 #define QOS_BLOCKED_DESTINATIONS_H
24 
25 #include <set>
26 #include "ns3/simple-ref-count.h"
27 
28 namespace ns3 {
29 
30 class Mac48Address;
31 
36 class QosBlockedDestinations : public SimpleRefCount<QosBlockedDestinations>
37 {
38 public:
41 
49  void Block (Mac48Address dest, uint8_t tid);
57  void Unblock (Mac48Address dest, uint8_t tid);
68  bool IsBlocked (Mac48Address dest, uint8_t tid) const;
69 
70 
71 private:
72  std::set < std::pair < Mac48Address, uint8_t >> m_blockedQosPackets;
73 };
74 
75 } //namespace ns3
76 
77 #endif /* QOS_BLOCKED_DESTINATIONS_H */
Keep track of destination address - TID pairs that are waiting for a block ACK response.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
an EUI-48 address
Definition: mac48-address.h:43
std::set< std::pair< Mac48Address, uint8_t > > m_blockedQosPackets
blocked QOS packets
bool IsBlocked(Mac48Address dest, uint8_t tid) const
Check if the given destination address and TID are blocked from sending (e.g.
void Unblock(Mac48Address dest, uint8_t tid)
Un-block the given destination address and TID (e.g.
void Block(Mac48Address dest, uint8_t tid)
Block the given destination address and TID from sending (e.g.
A template-based reference counting class.