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
ssid.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006 INRIA
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: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
#ifndef SSID_H
21
#define SSID_H
22
23
#include <stdint.h>
24
#include "ns3/buffer.h"
25
#include "ns3/attribute-helper.h"
26
#include "ns3/wifi-information-element.h"
27
28
namespace
ns3 {
29
35
class
Ssid
:
public
WifiInformationElement
36
{
37
public
:
38
// broadcast ssid
39
Ssid
();
45
Ssid
(std::string
s
);
52
Ssid
(
char
const
ssid[32], uint8_t length);
53
61
bool
IsEqual
(
const
Ssid
& o)
const
;
68
bool
IsBroadcast
(
void
)
const
;
69
75
char
*
PeekString
(
void
)
const
;
76
77
WifiInformationElementId
ElementId
()
const
;
78
uint8_t
GetInformationFieldSize
()
const
;
79
void
SerializeInformationField
(
Buffer::Iterator
start
)
const
;
80
uint8_t
DeserializeInformationField
(
Buffer::Iterator
start,
81
uint8_t length);
82
83
private
:
84
uint8_t
m_ssid
[33];
85
uint8_t
m_length
;
86
};
87
88
std::ostream &
operator <<
(std::ostream &os,
const
Ssid
&ssid);
89
std::istream &
operator >>
(std::istream &is,
Ssid
&ssid);
90
96
ATTRIBUTE_HELPER_HEADER
(
Ssid
);
97
98
}
// namespace ns3
99
100
#endif
/* SSID_H */
ns3::ATTRIBUTE_HELPER_HEADER
ATTRIBUTE_HELPER_HEADER(ObjectFactory)
ns3::operator>>
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
Definition:
angles.cc:49
ns3::Ssid::m_ssid
uint8_t m_ssid[33]
Raw SSID value.
Definition:
ssid.h:84
ns3::Ssid::IsBroadcast
bool IsBroadcast(void) const
Check if the SSID is broadcast.
Definition:
ssid.cc:85
visualizer.core.start
def start
Definition:
core.py:1482
ns3::Ssid::IsEqual
bool IsEqual(const Ssid &o) const
Check if the two SSIDs are equal.
Definition:
ssid.cc:69
ns3::Ssid::Ssid
Ssid()
Definition:
ssid.cc:25
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::WifiInformationElement
Information element, as defined in 802.11-2007 standardThe IEEE 802.11 standard includes the notion o...
Definition:
wifi-information-element.h:130
s
Ptr< SampleEmitter > s
Definition:
double-probe-test-suite.cc:51
ns3::Ssid::GetInformationFieldSize
uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
Definition:
ssid.cc:109
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition:
angles.cc:43
ns3::Ssid::PeekString
char * PeekString(void) const
Peek the SSID.
Definition:
ssid.cc:95
ns3::Ssid::SerializeInformationField
void SerializeInformationField(Buffer::Iterator start) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
Definition:
ssid.cc:115
ns3::Ssid
The IEEE 802.11 SSID Information Element.
Definition:
ssid.h:35
ns3::Ssid::ElementId
WifiInformationElementId ElementId() const
Own unique Element ID.
Definition:
ssid.cc:103
ns3::WifiInformationElementId
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
Definition:
wifi-information-element.h:41
ns3::Ssid::m_length
uint8_t m_length
Length of the SSID.
Definition:
ssid.h:85
ns3::Ssid::DeserializeInformationField
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
Definition:
ssid.cc:121
src
wifi
model
ssid.h
Generated on Sat Apr 19 2014 14:07:11 for ns-3 by
1.8.6