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
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
();
36
BlockAckAgreement
(
Mac48Address
peer, uint8_t tid);
37
~BlockAckAgreement
();
38
void
SetBufferSize
(uint16_t bufferSize);
39
void
SetTimeout
(uint16_t
timeout
);
40
void
SetStartingSequence
(uint16_t seq);
41
void
SetImmediateBlockAck
(
void
);
42
void
SetDelayedBlockAck
(
void
);
43
void
SetAmsduSupport
(
bool
supported);
44
45
uint8_t
GetTid
(
void
)
const
;
46
Mac48Address
GetPeer
(
void
)
const
;
47
uint16_t
GetBufferSize
(
void
)
const
;
48
uint16_t
GetTimeout
(
void
)
const
;
49
uint16_t
GetStartingSequence
(
void
)
const
;
50
uint16_t
GetStartingSequenceControl
(
void
)
const
;
51
bool
IsImmediateBlockAck
(
void
)
const
;
52
bool
IsAmsduSupported
(
void
)
const
;
53
54
protected
:
55
Mac48Address
m_peer
;
56
uint8_t
m_amsduSupported
;
57
uint8_t
m_blockAckPolicy
;
/* represents type of block ack: immediate or delayed */
58
uint8_t
m_tid
;
59
uint16_t
m_bufferSize
;
60
uint16_t
m_timeout
;
61
uint16_t
m_startingSeq
;
62
63
EventId
m_inactivityEvent
;
64
};
65
66
}
// namespace ns3
67
68
#endif
/* BLOCK_ACK_AGREEMENT_H */
ns3::BlockAckAgreement::BlockAckAgreement
BlockAckAgreement()
Definition:
block-ack-agreement.cc:27
ns3::BlockAckAgreement::GetTid
uint8_t GetTid(void) const
Definition:
block-ack-agreement.cc:92
ns3::BlockAckAgreement::m_peer
Mac48Address m_peer
Definition:
block-ack-agreement.h:55
ns3::BlockAckAgreement::GetTimeout
uint16_t GetTimeout(void) const
Definition:
block-ack-agreement.cc:110
ns3::BlockAckAgreement::GetPeer
Mac48Address GetPeer(void) const
Definition:
block-ack-agreement.cc:98
ns3::BlockAckAgreement::IsImmediateBlockAck
bool IsImmediateBlockAck(void) const
Definition:
block-ack-agreement.cc:129
ns3::BlockAckAgreement::m_startingSeq
uint16_t m_startingSeq
Definition:
block-ack-agreement.h:61
timeout
ns3::Time timeout
Definition:
openflow-switch.cc:52
ns3::BlockAckAgreement::GetStartingSequence
uint16_t GetStartingSequence(void) const
Definition:
block-ack-agreement.cc:116
ns3::BlockAckAgreement::m_timeout
uint16_t m_timeout
Definition:
block-ack-agreement.h:60
ns3::BlockAckAgreement::IsAmsduSupported
bool IsAmsduSupported(void) const
Definition:
block-ack-agreement.cc:135
ns3::BlockAckAgreement::m_tid
uint8_t m_tid
Definition:
block-ack-agreement.h:58
ns3::BlockAckAgreement::m_blockAckPolicy
uint8_t m_blockAckPolicy
Definition:
block-ack-agreement.h:57
ns3::BlockAckAgreement::m_bufferSize
uint16_t m_bufferSize
Definition:
block-ack-agreement.h:59
ns3::BlockAckAgreement::~BlockAckAgreement
~BlockAckAgreement()
Definition:
block-ack-agreement.cc:45
ns3::BlockAckAgreement::SetStartingSequence
void SetStartingSequence(uint16_t seq)
Definition:
block-ack-agreement.cc:66
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:41
ns3::BlockAckAgreement::m_amsduSupported
uint8_t m_amsduSupported
Definition:
block-ack-agreement.h:56
ns3::BlockAckAgreement::SetDelayedBlockAck
void SetDelayedBlockAck(void)
Definition:
block-ack-agreement.cc:79
ns3::BlockAckAgreement::m_inactivityEvent
EventId m_inactivityEvent
Definition:
block-ack-agreement.h:63
ns3::BlockAckAgreement::SetAmsduSupport
void SetAmsduSupport(bool supported)
Definition:
block-ack-agreement.cc:85
ns3::MacLow
handle RTS/CTS/DATA/ACK transactions.
Definition:
mac-low.h:380
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:46
ns3::BlockAckAgreement::SetImmediateBlockAck
void SetImmediateBlockAck(void)
Definition:
block-ack-agreement.cc:73
ns3::BlockAckAgreement::SetTimeout
void SetTimeout(uint16_t timeout)
Definition:
block-ack-agreement.cc:60
ns3::BlockAckAgreement::GetStartingSequenceControl
uint16_t GetStartingSequenceControl(void) const
Definition:
block-ack-agreement.cc:122
ns3::BlockAckAgreement::SetBufferSize
void SetBufferSize(uint16_t bufferSize)
Definition:
block-ack-agreement.cc:52
ns3::BlockAckAgreement::GetBufferSize
uint16_t GetBufferSize(void) const
Definition:
block-ack-agreement.cc:104
src
wifi
model
block-ack-agreement.h
Generated on Sun Apr 20 2014 11:15:04 for ns-3 by
1.8.6