A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
olsr
test
tc-regression-test.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 IITP RAS
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
* Authors: Pavel Boyko <boyko@iitp.ru>
19
*/
20
21
#ifndef TC_REGRESSION_TEST_H
22
#define TC_REGRESSION_TEST_H
23
24
#include "ns3/test.h"
25
#include "ns3/nstime.h"
26
#include "ns3/socket.h"
27
#include "ns3/ipv4-raw-socket-impl.h"
28
#include "ns3/node-container.h"
29
30
namespace
ns3
{
31
namespace
olsr
{
77
class
TcRegressionTest
:
public
TestCase
78
{
79
public
:
80
TcRegressionTest
();
81
~TcRegressionTest
();
82
private
:
84
const
Time
m_time
;
86
void
CreateNodes
();
87
void
DoRun
();
88
93
void
ReceivePktProbeA
(
Ptr<Socket>
socket);
95
uint8_t
m_countA
;
97
Ptr<Ipv4RawSocketImpl>
m_rxSocketA
;
98
103
void
ReceivePktProbeB
(
Ptr<Socket>
socket);
105
uint8_t
m_countB
;
107
Ptr<Ipv4RawSocketImpl>
m_rxSocketB
;
108
113
void
ReceivePktProbeC
(
Ptr<Socket>
socket);
115
uint8_t
m_countC
;
117
Ptr<Ipv4RawSocketImpl>
m_rxSocketC
;
118
119
};
120
121
}
122
}
123
124
#endif
/* TC_REGRESSION_TEST_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::olsr::TcRegressionTest::CreateNodes
void CreateNodes()
Create & configure test network.
Definition:
tc-regression-test.cc:72
ns3::Ptr< Socket >
ns3::olsr::TcRegressionTest::~TcRegressionTest
~TcRegressionTest()
Definition:
tc-regression-test.cc:51
ns3::olsr::TcRegressionTest::TcRegressionTest
TcRegressionTest()
Definition:
tc-regression-test.cc:44
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
ns3::olsr::TcRegressionTest::ReceivePktProbeC
void ReceivePktProbeC(Ptr< Socket > socket)
Receive raw data on node C.
Definition:
tc-regression-test.cc:246
ns3::olsr::TcRegressionTest::m_rxSocketB
Ptr< Ipv4RawSocketImpl > m_rxSocketB
Receiving socket on node B.
Definition:
tc-regression-test.h:107
ns3::olsr::TcRegressionTest::m_countA
uint8_t m_countA
Packet counter on node A.
Definition:
tc-regression-test.h:95
ns3::olsr::TcRegressionTest::ReceivePktProbeA
void ReceivePktProbeA(Ptr< Socket > socket)
Receive raw data on node A.
Definition:
tc-regression-test.cc:123
ns3::olsr::TcRegressionTest::DoRun
void DoRun()
Implementation to actually run this TestCase.
Definition:
tc-regression-test.cc:56
ns3::olsr::TcRegressionTest::m_rxSocketC
Ptr< Ipv4RawSocketImpl > m_rxSocketC
Receiving socket on node C.
Definition:
tc-regression-test.h:117
ns3::olsr::TcRegressionTest::ReceivePktProbeB
void ReceivePktProbeB(Ptr< Socket > socket)
Receive raw data on node B.
Definition:
tc-regression-test.cc:190
ns3::olsr::TcRegressionTest::m_countC
uint8_t m_countC
Packet counter on node C.
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
ns3::olsr::TcRegressionTest::m_rxSocketA
Ptr< Ipv4RawSocketImpl > m_rxSocketA
Receiving socket on node A.
Definition:
tc-regression-test.h:97
ns3::olsr::TcRegressionTest::m_time
const Time m_time
Total simulation time.
Definition:
tc-regression-test.h:84
ns3::olsr::TcRegressionTest
Less trivial test of OLSR Topology Control message generation.
Definition:
tc-regression-test.h:77
ns3::olsr::TcRegressionTest::m_countB
uint8_t m_countB
Packet counter on node B.
Definition:
tc-regression-test.h:105
Generated on Wed Nov 7 2018 10:02:08 for ns-3 by
1.8.14