This documentation is not the
Latest Release
.
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
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
{
32
namespace
olsr
33
{
52
class
HelloRegressionTest
:
public
TestCase
53
{
54
public
:
55
HelloRegressionTest
();
56
~HelloRegressionTest
();
57
private
:
59
const
Time
m_time
;
61
void
CreateNodes
();
63
void
DoRun
();
64
66
void
ReceivePktProbeA
(
Ptr<Socket>
socket);
68
uint8_t
m_countA
;
70
Ptr<Ipv4RawSocketImpl>
m_rxSocketA
;
72
void
ReceivePktProbeB
(
Ptr<Socket>
socket);
74
uint8_t
m_countB
;
76
Ptr<Ipv4RawSocketImpl>
m_rxSocketB
;
77
};
78
79
}
80
}
81
82
#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:1147
ns3::olsr::HelloRegressionTest::DoRun
void DoRun()
Go.
Definition:
hello-regression-test.cc:56
ns3::olsr::HelloRegressionTest::m_countB
uint8_t m_countB
Packet counter on node B.
Definition:
hello-regression-test.h:74
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:68
olsr
Definition:
olsr.py:1
ns3::olsr::HelloRegressionTest::~HelloRegressionTest
~HelloRegressionTest()
Definition:
hello-regression-test.cc:51
ns3::olsr::HelloRegressionTest::CreateNodes
void CreateNodes()
Create & configure test network.
Definition:
hello-regression-test.cc:71
ns3::olsr::HelloRegressionTest::ReceivePktProbeB
void ReceivePktProbeB(Ptr< Socket > socket)
Receive raw data on node B.
Definition:
hello-regression-test.cc:155
ns3::olsr::HelloRegressionTest::m_rxSocketB
Ptr< Ipv4RawSocketImpl > m_rxSocketB
Receiving socket on node B.
Definition:
hello-regression-test.h:76
ns3::olsr::HelloRegressionTest::ReceivePktProbeA
void ReceivePktProbeA(Ptr< Socket > socket)
Receive raw data on node A.
Definition:
hello-regression-test.cc:107
ns3::olsr::HelloRegressionTest::HelloRegressionTest
HelloRegressionTest()
Definition:
hello-regression-test.cc:45
ns3::olsr::HelloRegressionTest::m_rxSocketA
Ptr< Ipv4RawSocketImpl > m_rxSocketA
Receiving socket on node A.
Definition:
hello-regression-test.h:70
src
olsr
test
hello-regression-test.h
Generated on Wed Nov 11 2015 20:00:46 for ns-3 by
1.8.9.1