A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
olsr
test
hello-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 HELLO_REGRESSION_TEST_H
22
#define HELLO_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
{
52
class
HelloRegressionTest
:
public
TestCase
53
{
54
public
:
55
HelloRegressionTest
();
56
~HelloRegressionTest
();
57
private
:
59
const
Time
m_time
;
61
void
CreateNodes
();
62
void
DoRun
();
63
68
void
ReceivePktProbeA
(
Ptr<Socket>
socket);
70
uint8_t
m_countA
;
72
Ptr<Ipv4RawSocketImpl>
m_rxSocketA
;
77
void
ReceivePktProbeB
(
Ptr<Socket>
socket);
79
uint8_t
m_countB
;
81
Ptr<Ipv4RawSocketImpl>
m_rxSocketB
;
82
};
83
84
}
85
}
86
87
#endif
/* HELLO_REGRESSION_TEST_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< Socket >
ns3::olsr::HelloRegressionTest::m_time
const Time m_time
Total simulation time.
Definition:
hello-regression-test.h:59
ns3::olsr::HelloRegressionTest
Trivial (still useful) test of OLSR operation.
Definition:
hello-regression-test.h:52
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
ns3::olsr::HelloRegressionTest::DoRun
void DoRun()
Implementation to actually run this TestCase.
Definition:
hello-regression-test.cc:54
ns3::olsr::HelloRegressionTest::m_countB
uint8_t m_countB
Packet counter on node B.
Definition:
hello-regression-test.h:79
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::olsr::HelloRegressionTest::m_countA
uint8_t m_countA
Packet counter on node A.
Definition:
hello-regression-test.h:70
olsr
Definition:
olsr.py:1
ns3::olsr::HelloRegressionTest::~HelloRegressionTest
~HelloRegressionTest()
Definition:
hello-regression-test.cc:49
ns3::olsr::HelloRegressionTest::CreateNodes
void CreateNodes()
Create & configure test network.
Definition:
hello-regression-test.cc:69
ns3::olsr::HelloRegressionTest::ReceivePktProbeB
void ReceivePktProbeB(Ptr< Socket > socket)
Receive raw data on node B.
Definition:
hello-regression-test.cc:153
ns3::olsr::HelloRegressionTest::m_rxSocketB
Ptr< Ipv4RawSocketImpl > m_rxSocketB
Receiving socket on node B.
Definition:
hello-regression-test.h:81
ns3::olsr::HelloRegressionTest::ReceivePktProbeA
void ReceivePktProbeA(Ptr< Socket > socket)
Receive raw data on node A.
Definition:
hello-regression-test.cc:105
ns3::olsr::HelloRegressionTest::HelloRegressionTest
HelloRegressionTest()
Definition:
hello-regression-test.cc:43
ns3::olsr::HelloRegressionTest::m_rxSocketA
Ptr< Ipv4RawSocketImpl > m_rxSocketA
Receiving socket on node A.
Definition:
hello-regression-test.h:72
Generated on Wed Nov 7 2018 10:02:08 for ns-3 by
1.8.14