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
21
#ifndef BLOCK_ACK_AGREEMENT_H
22
#define BLOCK_ACK_AGREEMENT_H
23
24
#include "ns3/mac48-address.h"
25
#include "ns3/event-id.h"
26
27
namespace
ns3
{
32
class
BlockAckAgreement
33
{
34
friend
class
MacLow
;
35
36
37
public
:
38
BlockAckAgreement
();
45
BlockAckAgreement
(
Mac48Address
peer, uint8_t tid);
46
~BlockAckAgreement
();
52
void
SetBufferSize
(uint16_t bufferSize);
58
void
SetTimeout
(uint16_t
timeout
);
64
void
SetStartingSequence
(uint16_t seq);
70
void
SetStartingSequenceControl
(uint16_t seq);
74
void
SetImmediateBlockAck
(
void
);
78
void
SetDelayedBlockAck
(
void
);
84
void
SetAmsduSupport
(
bool
supported);
90
void
SetWinEnd
(uint16_t seq);
96
uint8_t
GetTid
(
void
)
const
;
102
Mac48Address
GetPeer
(
void
)
const
;
108
uint16_t
GetBufferSize
(
void
)
const
;
114
uint16_t
GetTimeout
(
void
)
const
;
120
uint16_t
GetStartingSequence
(
void
)
const
;
126
uint16_t
GetStartingSequenceControl
(
void
)
const
;
132
uint16_t
GetWinEnd
(
void
)
const
;
139
bool
IsImmediateBlockAck
(
void
)
const
;
146
bool
IsAmsduSupported
(
void
)
const
;
152
void
SetHtSupported
(
bool
htSupported);
159
bool
IsHtSupported
(
void
)
const
;
160
161
162
protected
:
163
Mac48Address
m_peer
;
164
uint8_t
m_amsduSupported
;
165
uint8_t
m_blockAckPolicy
;
166
uint8_t
m_tid
;
167
uint16_t
m_bufferSize
;
168
uint16_t
m_timeout
;
169
uint16_t
m_startingSeq
;
170
uint16_t
m_winEnd
;
171
uint8_t
m_htSupported
;
172
EventId
m_inactivityEvent
;
173
};
174
175
}
//namespace ns3
176
177
#endif
/* BLOCK_ACK_AGREEMENT_H */
ns3::BlockAckAgreement::BlockAckAgreement
BlockAckAgreement()
Definition:
block-ack-agreement.cc:28
ns3::BlockAckAgreement::GetTid
uint8_t GetTid(void) const
Return the Traffic ID (TID).
Definition:
block-ack-agreement.cc:108
ns3::BlockAckAgreement::m_peer
Mac48Address m_peer
Peer address.
Definition:
block-ack-agreement.h:163
ns3::BlockAckAgreement::GetTimeout
uint16_t GetTimeout(void) const
Return the timeout.
Definition:
block-ack-agreement.cc:129
ns3::BlockAckAgreement::GetWinEnd
uint16_t GetWinEnd(void) const
Return the ending sequence number.
Definition:
block-ack-agreement.cc:165
ns3::BlockAckAgreement::GetPeer
Mac48Address GetPeer(void) const
Return the peer address.
Definition:
block-ack-agreement.cc:115
ns3::BlockAckAgreement::IsImmediateBlockAck
bool IsImmediateBlockAck(void) const
Check whether the current ACK policy is immediate block ACK.
Definition:
block-ack-agreement.cc:151
ns3::BlockAckAgreement::m_startingSeq
uint16_t m_startingSeq
Starting squence control.
Definition:
block-ack-agreement.h:169
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:136
ns3::BlockAckAgreement::m_winEnd
uint16_t m_winEnd
Ending sequence number.
Definition:
block-ack-agreement.h:170
ns3::BlockAckAgreement::m_timeout
uint16_t m_timeout
Timeout.
Definition:
block-ack-agreement.h:168
ns3::BlockAckAgreement::IsAmsduSupported
bool IsAmsduSupported(void) const
Check whether A-MSDU is supported.
Definition:
block-ack-agreement.cc:158
ns3::BlockAckAgreement::m_tid
uint8_t m_tid
Traffic ID.
Definition:
block-ack-agreement.h:166
ns3::BlockAckAgreement::m_htSupported
uint8_t m_htSupported
Flag whether HT is supported.
Definition:
block-ack-agreement.h:171
ns3::BlockAckAgreement::m_blockAckPolicy
uint8_t m_blockAckPolicy
Type of block ack: immediate or delayed.
Definition:
block-ack-agreement.h:165
ns3::BlockAckAgreement::SetWinEnd
void SetWinEnd(uint16_t seq)
Set ending sequence number.
Definition:
block-ack-agreement.cc:171
ns3::BlockAckAgreement::SetStartingSequenceControl
void SetStartingSequenceControl(uint16_t seq)
Set starting sequence control.
Definition:
block-ack-agreement.cc:79
ns3::BlockAckAgreement::m_bufferSize
uint16_t m_bufferSize
Buffer size.
Definition:
block-ack-agreement.h:167
ns3::BlockAckAgreement::~BlockAckAgreement
~BlockAckAgreement()
Definition:
block-ack-agreement.cc:48
ns3::BlockAckAgreement::SetStartingSequence
void SetStartingSequence(uint16_t seq)
Set starting sequence number.
Definition:
block-ack-agreement.cc:71
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:164
ns3::BlockAckAgreement::SetDelayedBlockAck
void SetDelayedBlockAck(void)
Set Block ACK policy to delayed ACK.
Definition:
block-ack-agreement.cc:94
ns3::BlockAckAgreement::m_inactivityEvent
EventId m_inactivityEvent
Definition:
block-ack-agreement.h:172
ns3::BlockAckAgreement::SetAmsduSupport
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Definition:
block-ack-agreement.cc:101
ns3::MacLow
handle RTS/CTS/DATA/ACK transactions.
Definition:
mac-low.h:485
ns3::BlockAckAgreement
Maintains information for a block ack agreement.
Definition:
block-ack-agreement.h:32
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:87
ns3::BlockAckAgreement::SetTimeout
void SetTimeout(uint16_t timeout)
Set timeout.
Definition:
block-ack-agreement.cc:64
ns3::BlockAckAgreement::IsHtSupported
bool IsHtSupported(void) const
Check whether HT is supported.
Definition:
block-ack-agreement.cc:184
ns3::BlockAckAgreement::GetStartingSequenceControl
uint16_t GetStartingSequenceControl(void) const
Return the starting sequence control.
Definition:
block-ack-agreement.cc:143
ns3::BlockAckAgreement::SetBufferSize
void SetBufferSize(uint16_t bufferSize)
Set buffer size.
Definition:
block-ack-agreement.cc:55
ns3::BlockAckAgreement::GetBufferSize
uint16_t GetBufferSize(void) const
Return the buffer size.
Definition:
block-ack-agreement.cc:122
ns3::BlockAckAgreement::SetHtSupported
void SetHtSupported(bool htSupported)
Enable or disable HT support.
Definition:
block-ack-agreement.cc:177
src
wifi
model
block-ack-agreement.h
Generated on Wed Sep 30 2015 15:55:52 for ns-3 by
1.8.9.1