A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ping-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Universita' di Firenze, Italy
3
* Copyright (c) 2008-2009 Strasbourg University (original Ping6 helper)
4
* Copyright (c) 2008 INRIA (original v4Ping helper)
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation;
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* Author: Tommaso Pecorella <tommaso.pecorella@unifi.it>
20
*
21
* Derived from original v4Ping helper (author: Mathieu Lacage)
22
* Derived from original ping6 helper (author: Sebastien Vincent)
23
*/
24
25
#ifndef PING_HELPER_H
26
#define PING_HELPER_H
27
28
#include "ns3/ping.h"
29
#include <ns3/application-helper.h>
30
31
namespace
ns3
32
{
33
34
/**
35
* \ingroup ping
36
* \brief Create a ping application and associate it to a node
37
*
38
* This class creates one or multiple instances of ns3::Ping and associates
39
* it/them to one/multiple node(s).
40
*/
41
class
PingHelper
:
public
ApplicationHelper
42
{
43
public
:
44
/**
45
* Create a PingHelper which is used to make life easier for people wanting
46
* to use ping Applications.
47
*/
48
PingHelper
();
49
50
/**
51
* Create a PingHelper which is used to make life easier for people wanting
52
* to use ping Applications.
53
*
54
* \param remote The address which should be pinged
55
* \param local The source address
56
*/
57
PingHelper
(
const
Address
& remote,
const
Address
& local =
Address
());
58
};
59
60
}
// namespace ns3
61
62
#endif
/* PING_HELPER_H */
ns3::Address
a polymophic address class
Definition:
address.h:101
ns3::ApplicationHelper
A helper to make it easier to instantiate an application on a set of nodes.
Definition:
application-helper.h:39
ns3::PingHelper
Create a ping application and associate it to a node.
Definition:
ping-helper.h:42
ns3::PingHelper::PingHelper
PingHelper()
Create a PingHelper which is used to make life easier for people wanting to use ping Applications.
Definition:
ping-helper.cc:30
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet-apps
helper
ping-helper.h
Generated on Tue May 28 2024 23:35:29 for ns-3 by
1.9.6