A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
aloha-noack-mac-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009, 2010 CTTC
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Nicola Baldo <nbaldo@cttc.es>
18
*/
19
20
#ifndef ALOHA_NOACK_MAC_HEADER_H
21
#define ALOHA_NOACK_MAC_HEADER_H
22
23
#include <ns3/address-utils.h>
24
#include <ns3/header.h>
25
#include <ns3/mac48-address.h>
26
27
namespace
ns3
28
{
29
35
class
AlohaNoackMacHeader
:
public
Header
36
{
37
public
:
42
static
TypeId
GetTypeId
();
43
TypeId
GetInstanceTypeId
()
const override
;
44
uint32_t
GetSerializedSize
()
const override
;
45
void
Serialize
(
Buffer::Iterator
start
)
const override
;
46
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
47
void
Print
(std::ostream& os)
const override
;
48
53
void
SetSource
(
Mac48Address
source);
58
void
SetDestination
(
Mac48Address
destination);
59
64
Mac48Address
GetSource
()
const
;
69
Mac48Address
GetDestination
()
const
;
70
71
private
:
72
Mac48Address
m_source
;
73
Mac48Address
m_destination
;
74
};
75
76
}
// namespace ns3
77
78
#endif
/* ALOHA_NOACK_MAC_HEADER_H */
ns3::AlohaNoackMacHeader
Header for the AlohaNoack NetDevice.
Definition:
aloha-noack-mac-header.h:36
ns3::AlohaNoackMacHeader::GetSource
Mac48Address GetSource() const
Get the source address.
Definition:
aloha-noack-mac-header.cc:81
ns3::AlohaNoackMacHeader::m_source
Mac48Address m_source
source address
Definition:
aloha-noack-mac-header.h:72
ns3::AlohaNoackMacHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
aloha-noack-mac-header.cc:54
ns3::AlohaNoackMacHeader::SetDestination
void SetDestination(Mac48Address destination)
Set the destination address.
Definition:
aloha-noack-mac-header.cc:87
ns3::AlohaNoackMacHeader::Print
void Print(std::ostream &os) const override
Definition:
aloha-noack-mac-header.cc:69
ns3::AlohaNoackMacHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
aloha-noack-mac-header.cc:48
ns3::AlohaNoackMacHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
aloha-noack-mac-header.cc:32
ns3::AlohaNoackMacHeader::GetDestination
Mac48Address GetDestination() const
Get the destination address.
Definition:
aloha-noack-mac-header.cc:93
ns3::AlohaNoackMacHeader::m_destination
Mac48Address m_destination
destination address
Definition:
aloha-noack-mac-header.h:73
ns3::AlohaNoackMacHeader::SetSource
void SetSource(Mac48Address source)
Set the source address.
Definition:
aloha-noack-mac-header.cc:75
ns3::AlohaNoackMacHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
aloha-noack-mac-header.cc:42
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:44
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:46
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:520
src
spectrum
model
aloha-noack-mac-header.h
Generated on Sun Mar 3 2024 17:11:08 for ns-3 by
1.9.1