A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#ifndef QOS_BLOCKED_DESTINATIONS_H
22
#define QOS_BLOCKED_DESTINATIONS_H
23
24
#include <list>
25
#include "ns3/mac48-address.h"
26
27
namespace
ns3 {
28
33
class
QosBlockedDestinations
34
{
35
public
:
36
QosBlockedDestinations
();
37
~QosBlockedDestinations
();
38
46
void
Block
(
Mac48Address
dest, uint8_t tid);
54
void
Unblock
(
Mac48Address
dest, uint8_t tid);
64
bool
IsBlocked
(
Mac48Address
dest, uint8_t tid)
const
;
65
66
private
:
70
typedef
std::list<std::pair<Mac48Address, uint8_t> >
BlockedPackets
;
74
typedef
std::list<std::pair<Mac48Address, uint8_t> >::iterator
BlockedPacketsI
;
78
typedef
std::list<std::pair<Mac48Address, uint8_t> >::const_iterator
BlockedPacketsCI
;
79
BlockedPackets
m_blockedQosPackets
;
80
};
81
82
}
// namespace ns3
83
84
#endif
/* QOS_BLOCKED_DESTINATIONS_H */
ns3::QosBlockedDestinations
Keep track of destination address - TID pairs that are waiting for a block ACK response.
Definition:
qos-blocked-destinations.h:33
ns3::QosBlockedDestinations::BlockedPacketsI
std::list< std::pair< Mac48Address, uint8_t > >::iterator BlockedPacketsI
typedef for an iterator of BlockedPackets
Definition:
qos-blocked-destinations.h:74
ns3::QosBlockedDestinations::BlockedPackets
std::list< std::pair< Mac48Address, uint8_t > > BlockedPackets
typedef for a list of
pair.
Definition:
qos-blocked-destinations.h:70
ns3::QosBlockedDestinations::~QosBlockedDestinations
~QosBlockedDestinations()
Definition:
qos-blocked-destinations.cc:29
ns3::QosBlockedDestinations::m_blockedQosPackets
BlockedPackets m_blockedQosPackets
Definition:
qos-blocked-destinations.h:79
ns3::QosBlockedDestinations::QosBlockedDestinations
QosBlockedDestinations()
Definition:
qos-blocked-destinations.cc:25
ns3::QosBlockedDestinations::BlockedPacketsCI
std::list< std::pair< Mac48Address, uint8_t > >::const_iterator BlockedPacketsCI
typedef for a constan iterator of BlockedPackets
Definition:
qos-blocked-destinations.h:78
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:41
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:56
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:47
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:34
src
wifi
model
qos-blocked-destinations.h
Generated on Sat Apr 19 2014 14:07:11 for ns-3 by
1.8.6