A Discrete-Event Network Simulator
API
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 
21 #ifndef SSID_H
22 #define SSID_H
23 
25 
26 namespace ns3 {
27 
36 {
37 public:
38  // broadcast ssid
39  Ssid ();
45  Ssid (std::string s);
52  Ssid (char const ssid[32], uint8_t length);
53 
62  bool IsEqual (const Ssid& o) const;
69  bool IsBroadcast (void) const;
70 
76  char* PeekString (void) const;
77 
84 
90  uint8_t GetInformationFieldSize () const;
91 
98 
107  uint8_t length);
108 
109 private:
110  uint8_t m_ssid[33];
111  uint8_t m_length;
112 };
113 
114 std::ostream &operator << (std::ostream &os, const Ssid &ssid);
115 std::istream &operator >> (std::istream &is, Ssid &ssid);
116 
118 
119 } //namespace ns3
120 
121 #endif /* SSID_H */
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
Definition: angles.cc:48
uint8_t m_ssid[33]
Raw SSID value.
Definition: ssid.h:110
def start()
Definition: core.py:1790
bool IsBroadcast(void) const
Check if the SSID is broadcast.
Definition: ssid.cc:89
bool IsEqual(const Ssid &o) const
Check if the two SSIDs are equal.
Definition: ssid.cc:72
Ssid()
Definition: ssid.cc:25
iterator in a Buffer instance
Definition: buffer.h:98
Information element, as defined in 802.11-2007 standardThe IEEE 802.11 standard includes the notion o...
uint8_t GetInformationFieldSize() const
Get the information field size.
Definition: ssid.cc:113
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:42
char * PeekString(void) const
Peek the SSID.
Definition: ssid.cc:99
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SerializeInformationField(Buffer::Iterator start) const
Get the information field size.
Definition: ssid.cc:119
tuple ssid
Definition: third.py:93
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
WifiInformationElementId ElementId() const
Get the ElementID.
Definition: ssid.cc:107
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t m_length
Length of the SSID.
Definition: ssid.h:111
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Get the information field size.
Definition: ssid.cc:126