A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
qos-blocked-destinations.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005, 2009 INRIA
3
* Copyright (c) 2009 MIRKO BANCHI
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mirko Banchi <mk.banchi@gmail.com>
19
*/
20
21
#ifndef QOS_BLOCKED_DESTINATIONS_H
22
#define QOS_BLOCKED_DESTINATIONS_H
23
24
#include "ns3/simple-ref-count.h"
25
26
#include <set>
27
28
namespace
ns3
29
{
30
31
class
Mac48Address;
32
37
class
QosBlockedDestinations
:
public
SimpleRefCount
<QosBlockedDestinations>
38
{
39
public
:
40
QosBlockedDestinations
();
41
~QosBlockedDestinations
();
42
50
void
Block
(
Mac48Address
dest, uint8_t tid);
58
void
Unblock
(
Mac48Address
dest, uint8_t tid);
69
bool
IsBlocked
(
Mac48Address
dest, uint8_t tid)
const
;
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 */
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:46
ns3::QosBlockedDestinations
Keep track of destination address - TID pairs that are waiting for a BlockAck response.
Definition:
qos-blocked-destinations.h:38
ns3::QosBlockedDestinations::m_blockedQosPackets
std::set< std::pair< Mac48Address, uint8_t > > m_blockedQosPackets
blocked QoS packets
Definition:
qos-blocked-destinations.h:72
ns3::QosBlockedDestinations::~QosBlockedDestinations
~QosBlockedDestinations()
Definition:
qos-blocked-destinations.cc:32
ns3::QosBlockedDestinations::Unblock
void Unblock(Mac48Address dest, uint8_t tid)
Un-block the given destination address and TID (e.g.
Definition:
qos-blocked-destinations.cc:49
ns3::QosBlockedDestinations::Block
void Block(Mac48Address dest, uint8_t tid)
Block the given destination address and TID from sending (e.g.
Definition:
qos-blocked-destinations.cc:43
ns3::QosBlockedDestinations::QosBlockedDestinations
QosBlockedDestinations()
Definition:
qos-blocked-destinations.cc:28
ns3::QosBlockedDestinations::IsBlocked
bool IsBlocked(Mac48Address dest, uint8_t tid) const
Check if the given destination address and TID are blocked from sending (e.g.
Definition:
qos-blocked-destinations.cc:37
ns3::SimpleRefCount
A template-based reference counting class.
Definition:
simple-ref-count.h:81
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
qos-blocked-destinations.h
Generated on Fri Mar 31 2023 13:30:53 for ns-3 by
1.9.1