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
block-ack-agreement.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
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
#ifndef BLOCK_ACK_AGREEMENT_H
21
#define BLOCK_ACK_AGREEMENT_H
22
23
#include "ns3/mac48-address.h"
24
#include "ns3/event-id.h"
25
26
namespace
ns3
{
31
class
BlockAckAgreement
32
{
33
friend
class
MacLow
;
34
public
:
35
BlockAckAgreement
();
42
BlockAckAgreement
(
Mac48Address
peer, uint8_t tid);
43
~BlockAckAgreement
();
49
void
SetBufferSize
(uint16_t bufferSize);
55
void
SetTimeout
(uint16_t
timeout
);
61
void
SetStartingSequence
(uint16_t seq);
65
void
SetImmediateBlockAck
(
void
);
69
void
SetDelayedBlockAck
(
void
);
75
void
SetAmsduSupport
(
bool
supported);
81
void
SetWinEnd
(uint16_t seq);
87
uint8_t
GetTid
(
void
)
const
;
93
Mac48Address
GetPeer
(
void
)
const
;
99
uint16_t
GetBufferSize
(
void
)
const
;
105
uint16_t
GetTimeout
(
void
)
const
;
111
uint16_t
GetStartingSequence
(
void
)
const
;
117
uint16_t
GetStartingSequenceControl
(
void
)
const
;
123
uint16_t
GetWinEnd
(
void
)
const
;
130
bool
IsImmediateBlockAck
(
void
)
const
;
137
bool
IsAmsduSupported
(
void
)
const
;
143
void
SetHtSupported
(
bool
htSupported);
150
bool
IsHtSupported
(
void
)
const
;
151
152
protected
:
153
Mac48Address
m_peer
;
154
uint8_t
m_amsduSupported
;
155
uint8_t
m_blockAckPolicy
;
156
uint8_t
m_tid
;
157
uint16_t
m_bufferSize
;
158
uint16_t
m_timeout
;
159
uint16_t
m_startingSeq
;
160
uint16_t
m_winEnd
;
161
uint8_t
m_htSupported
;
162
EventId
m_inactivityEvent
;
163
};
164
165
}
// namespace ns3
166
167
#endif
/* BLOCK_ACK_AGREEMENT_H */
ns3::BlockAckAgreement::BlockAckAgreement
BlockAckAgreement()
Definition:
block-ack-agreement.cc:27
ns3::BlockAckAgreement::GetTid
uint8_t GetTid(void) const
Return the Traffic ID (TID).
Definition:
block-ack-agreement.cc:94
ns3::BlockAckAgreement::m_peer
Mac48Address m_peer
Peer address.
Definition:
block-ack-agreement.h:153
ns3::BlockAckAgreement::GetTimeout
uint16_t GetTimeout(void) const
Return the timeout.
Definition:
block-ack-agreement.cc:112
ns3::BlockAckAgreement::GetWinEnd
uint16_t GetWinEnd(void) const
Return the ending sequence number.
Definition:
block-ack-agreement.cc:143
ns3::BlockAckAgreement::GetPeer
Mac48Address GetPeer(void) const
Return the peer address.
Definition:
block-ack-agreement.cc:100
ns3::BlockAckAgreement::IsImmediateBlockAck
bool IsImmediateBlockAck(void) const
Check whether the current ACK policy is immediate block ACK.
Definition:
block-ack-agreement.cc:131
ns3::BlockAckAgreement::m_startingSeq
uint16_t m_startingSeq
Starting squence control.
Definition:
block-ack-agreement.h:159
timeout
ns3::Time timeout
Definition:
openflow-switch.cc:52
ns3::BlockAckAgreement::GetStartingSequence
uint16_t GetStartingSequence(void) const
Return the starting squence number.
Definition:
block-ack-agreement.cc:118
ns3::BlockAckAgreement::m_winEnd
uint16_t m_winEnd
Ending sequence number.
Definition:
block-ack-agreement.h:160
ns3::BlockAckAgreement::m_timeout
uint16_t m_timeout
Timeout.
Definition:
block-ack-agreement.h:158
ns3::BlockAckAgreement::IsAmsduSupported
bool IsAmsduSupported(void) const
Check whether A-MSDU is supported.
Definition:
block-ack-agreement.cc:137
ns3::BlockAckAgreement::m_tid
uint8_t m_tid
Traffic ID.
Definition:
block-ack-agreement.h:156
ns3::BlockAckAgreement::m_htSupported
uint8_t m_htSupported
Flag whether HT is supported.
Definition:
block-ack-agreement.h:161
ns3::BlockAckAgreement::m_blockAckPolicy
uint8_t m_blockAckPolicy
Type of block ack: immediate or delayed.
Definition:
block-ack-agreement.h:155
ns3::BlockAckAgreement::SetWinEnd
void SetWinEnd(uint16_t seq)
Set ending sequence number.
Definition:
block-ack-agreement.cc:148
ns3::BlockAckAgreement::m_bufferSize
uint16_t m_bufferSize
Buffer size.
Definition:
block-ack-agreement.h:157
ns3::BlockAckAgreement::~BlockAckAgreement
~BlockAckAgreement()
Definition:
block-ack-agreement.cc:47
ns3::BlockAckAgreement::SetStartingSequence
void SetStartingSequence(uint16_t seq)
Set starting sequence number.
Definition:
block-ack-agreement.cc:68
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:43
ns3::BlockAckAgreement::m_amsduSupported
uint8_t m_amsduSupported
Flag whether MSDU aggregation is supported.
Definition:
block-ack-agreement.h:154
ns3::BlockAckAgreement::SetDelayedBlockAck
void SetDelayedBlockAck(void)
Set Block ACK policy to delayed ACK.
Definition:
block-ack-agreement.cc:81
ns3::BlockAckAgreement::m_inactivityEvent
EventId m_inactivityEvent
Definition:
block-ack-agreement.h:162
ns3::BlockAckAgreement::SetAmsduSupport
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Definition:
block-ack-agreement.cc:87
ns3::MacLow
handle RTS/CTS/DATA/ACK transactions.
Definition:
mac-low.h:486
ns3::BlockAckAgreement
Maintains information for a block ack agreement.
Definition:
block-ack-agreement.h:31
ns3::EventId
An identifier for simulation events.
Definition:
event-id.h:53
ns3::BlockAckAgreement::SetImmediateBlockAck
void SetImmediateBlockAck(void)
Set Block ACK policy to immediate ACK.
Definition:
block-ack-agreement.cc:75
ns3::BlockAckAgreement::SetTimeout
void SetTimeout(uint16_t timeout)
Set timeout.
Definition:
block-ack-agreement.cc:62
ns3::BlockAckAgreement::IsHtSupported
bool IsHtSupported(void) const
Check whether HT is supported.
Definition:
block-ack-agreement.cc:159
ns3::BlockAckAgreement::GetStartingSequenceControl
uint16_t GetStartingSequenceControl(void) const
Return the starting squence control.
Definition:
block-ack-agreement.cc:124
ns3::BlockAckAgreement::SetBufferSize
void SetBufferSize(uint16_t bufferSize)
Set buffer size.
Definition:
block-ack-agreement.cc:54
ns3::BlockAckAgreement::GetBufferSize
uint16_t GetBufferSize(void) const
Return the buffer size.
Definition:
block-ack-agreement.cc:106
ns3::BlockAckAgreement::SetHtSupported
void SetHtSupported(bool htSupported)
Enable or disable HT support.
Definition:
block-ack-agreement.cc:153
src
wifi
model
block-ack-agreement.h
Generated on Thu Aug 13 2015 14:28:12 for ns-3 by
1.8.9.1