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
* SPDX-License-Identifier: GPL-2.0-only
7
*
8
* Author: Tommaso Pecorella <tommaso.pecorella@unifi.it>
9
*
10
* Derived from original v4Ping helper (author: Mathieu Lacage)
11
* Derived from original ping6 helper (author: Sebastien Vincent)
12
*/
13
14
#ifndef PING_HELPER_H
15
#define PING_HELPER_H
16
17
#include "ns3/ping.h"
18
#include <ns3/application-helper.h>
19
20
namespace
ns3
21
{
22
23
/**
24
* \ingroup ping
25
* \brief Create a ping application and associate it to a node
26
*
27
* This class creates one or multiple instances of ns3::Ping and associates
28
* it/them to one/multiple node(s).
29
*/
30
class
PingHelper
:
public
ApplicationHelper
31
{
32
public
:
33
/**
34
* Create a PingHelper which is used to make life easier for people wanting
35
* to use ping Applications.
36
*/
37
PingHelper
();
38
39
/**
40
* Create a PingHelper which is used to make life easier for people wanting
41
* to use ping Applications.
42
*
43
* \param remote The address which should be pinged
44
* \param local The source address
45
*/
46
PingHelper
(
const
Address
& remote,
const
Address
& local =
Address
());
47
};
48
49
}
// namespace ns3
50
51
#endif
/* PING_HELPER_H */
ns3::Address
a polymophic address class
Definition
address.h:90
ns3::ApplicationHelper
A helper to make it easier to instantiate an application on a set of nodes.
Definition
application-helper.h:28
ns3::PingHelper
Create a ping application and associate it to a node.
Definition
ping-helper.h:31
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:19
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet-apps
helper
ping-helper.h
Generated on Fri Nov 8 2024 13:59:00 for ns-3 by
1.11.0