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
();
40
Ssid
(std::string s);
41
Ssid
(
char
const
ssid[32], uint8_t length);
42
43
bool
IsEqual
(
const
Ssid
& o)
const
;
44
bool
IsBroadcast
(
void
)
const
;
45
46
char
*
PeekString
(
void
)
const
;
47
48
WifiInformationElementId
ElementId
()
const
;
49
uint8_t
GetInformationFieldSize
()
const
;
50
void
SerializeInformationField
(
Buffer::Iterator
start
)
const
;
51
uint8_t
DeserializeInformationField
(
Buffer::Iterator
start,
52
uint8_t length);
53
54
private
:
55
uint8_t
m_ssid
[33];
56
uint8_t
m_length
;
57
};
58
59
std::ostream &
operator <<
(std::ostream &os,
const
Ssid
&ssid);
60
std::istream &
operator >>
(std::istream &is,
Ssid
&ssid);
61
67
ATTRIBUTE_HELPER_HEADER
(
Ssid
);
68
69
}
// namespace ns3
70
71
#endif
/* SSID_H */
src
wifi
model
ssid.h
Generated on Fri Dec 21 2012 19:00:49 for ns-3 by
1.8.1.2