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
v4traceroute-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Ritsumeikan University, Shiga, Japan
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
*
7
* Alberto Gallegos Ramonet <ramonet@fc.ritsumei.ac.jp>
8
*
9
*/
10
11
#ifndef V4TRACEROUTE_HELPER_H
12
#define V4TRACEROUTE_HELPER_H
13
14
#include <ns3/application-helper.h>
15
16
namespace
ns3
17
{
18
19
class
OutputStreamWrapper;
20
21
/**
22
* \ingroup v4traceroute
23
* \brief Create a IPv4 traceroute application and associate it to a node
24
*
25
* This class creates one or multiple instances of ns3::V4TraceRoute and associates
26
* it/them to one/multiple node(s).
27
*/
28
class
V4TraceRouteHelper
:
public
ApplicationHelper
29
{
30
public
:
31
/**
32
* Create a V4TraceRouteHelper which is used to make life easier for people wanting
33
* to use TraceRoute
34
*
35
* \param remote The address which should be traced
36
*/
37
V4TraceRouteHelper
(
const
Ipv4Address
& remote);
38
39
/**
40
* \brief Print the resulting trace routes from given node.
41
* \param node The origin node where the traceroute is initiated.
42
* \param stream The outputstream used to print the resulting traced routes.
43
*/
44
static
void
PrintTraceRouteAt
(
Ptr<Node>
node,
Ptr<OutputStreamWrapper>
stream);
45
};
46
47
}
// namespace ns3
48
49
#endif
/* V4TRACEROUTE_HELPER_H */
ns3::ApplicationHelper
A helper to make it easier to instantiate an application on a set of nodes.
Definition
application-helper.h:28
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition
ipv4-address.h:31
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::V4TraceRouteHelper
Create a IPv4 traceroute application and associate it to a node.
Definition
v4traceroute-helper.h:29
ns3::V4TraceRouteHelper::PrintTraceRouteAt
static void PrintTraceRouteAt(Ptr< Node > node, Ptr< OutputStreamWrapper > stream)
Print the resulting trace routes from given node.
Definition
v4traceroute-helper.cc:26
ns3::V4TraceRouteHelper::V4TraceRouteHelper
V4TraceRouteHelper(const Ipv4Address &remote)
Create a V4TraceRouteHelper which is used to make life easier for people wanting to use TraceRoute.
Definition
v4traceroute-helper.cc:19
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet-apps
helper
v4traceroute-helper.h
Generated on Fri Nov 8 2024 13:59:00 for ns-3 by
1.11.0