A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
e
i
l
o
r
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tc-regression-test.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 IITP RAS
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
* Authors: Pavel Boyko <boyko@iitp.ru>
18
*/
19
20
#ifndef TC_REGRESSION_TEST_H
21
#define TC_REGRESSION_TEST_H
22
23
#include "ns3/ipv4-raw-socket-impl.h"
24
#include "ns3/node-container.h"
25
#include "ns3/nstime.h"
26
#include "ns3/socket.h"
27
#include "ns3/test.h"
28
29
namespace
ns3
30
{
31
namespace
olsr
32
{
96
class
TcRegressionTest
:
public
TestCase
97
{
98
public
:
99
TcRegressionTest
();
100
~TcRegressionTest
()
override
;
101
102
private
:
104
const
Time
m_time
;
106
void
CreateNodes
();
107
void
DoRun
()
override
;
108
113
void
ReceivePktProbeA
(
Ptr<Socket>
socket);
115
uint8_t
m_countA
;
117
Ptr<Ipv4RawSocketImpl>
m_rxSocketA
;
118
123
void
ReceivePktProbeB
(
Ptr<Socket>
socket);
125
uint8_t
m_countB
;
127
Ptr<Ipv4RawSocketImpl>
m_rxSocketB
;
128
133
void
ReceivePktProbeC
(
Ptr<Socket>
socket);
135
uint8_t
m_countC
;
137
Ptr<Ipv4RawSocketImpl>
m_rxSocketC
;
138
};
139
140
}
// namespace olsr
141
}
// namespace ns3
142
143
#endif
/* TC_REGRESSION_TEST_H */
ns3::Ptr< Socket >
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::olsr::TcRegressionTest
Less trivial test of OLSR Topology Control message generation.
Definition:
tc-regression-test.h:97
ns3::olsr::TcRegressionTest::CreateNodes
void CreateNodes()
Create & configure test network.
Definition:
tc-regression-test.cc:76
ns3::olsr::TcRegressionTest::ReceivePktProbeB
void ReceivePktProbeB(Ptr< Socket > socket)
Receive raw data on node B.
Definition:
tc-regression-test.cc:230
ns3::olsr::TcRegressionTest::~TcRegressionTest
~TcRegressionTest() override
Definition:
tc-regression-test.cc:55
ns3::olsr::TcRegressionTest::m_countB
uint8_t m_countB
Packet counter on node B.
Definition:
tc-regression-test.h:125
ns3::olsr::TcRegressionTest::m_rxSocketB
Ptr< Ipv4RawSocketImpl > m_rxSocketB
Receiving socket on node B.
Definition:
tc-regression-test.h:127
ns3::olsr::TcRegressionTest::TcRegressionTest
TcRegressionTest()
Definition:
tc-regression-test.cc:46
ns3::olsr::TcRegressionTest::ReceivePktProbeC
void ReceivePktProbeC(Ptr< Socket > socket)
Receive raw data on node C.
Definition:
tc-regression-test.cc:302
ns3::olsr::TcRegressionTest::m_countC
uint8_t m_countC
Packet counter on node C.
Definition:
tc-regression-test.h:135
ns3::olsr::TcRegressionTest::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
tc-regression-test.cc:60
ns3::olsr::TcRegressionTest::m_rxSocketC
Ptr< Ipv4RawSocketImpl > m_rxSocketC
Receiving socket on node C.
Definition:
tc-regression-test.h:137
ns3::olsr::TcRegressionTest::ReceivePktProbeA
void ReceivePktProbeA(Ptr< Socket > socket)
Receive raw data on node A.
Definition:
tc-regression-test.cc:127
ns3::olsr::TcRegressionTest::m_time
const Time m_time
Total simulation time.
Definition:
tc-regression-test.h:104
ns3::olsr::TcRegressionTest::m_rxSocketA
Ptr< Ipv4RawSocketImpl > m_rxSocketA
Receiving socket on node A.
Definition:
tc-regression-test.h:117
ns3::olsr::TcRegressionTest::m_countA
uint8_t m_countA
Packet counter on node A.
Definition:
tc-regression-test.h:115
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
olsr
Definition:
olsr.py:1
src
olsr
test
tc-regression-test.h
Generated on Sun Mar 3 2024 17:11:07 for ns-3 by
1.9.1