A Discrete-Event Network Simulator
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
20namespace 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 */
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 */
a polymophic address class
Definition address.h:90
A helper to make it easier to instantiate an application on a set of nodes.
Create a ping application and associate it to a node.
Definition ping-helper.h:31
PingHelper()
Create a PingHelper which is used to make life easier for people wanting to use ping Applications.
Every class exported by the ns3 library is enclosed in the ns3 namespace.