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
packet-sink-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
9
#ifndef PACKET_SINK_HELPER_H
10
#define PACKET_SINK_HELPER_H
11
12
#include <ns3/application-helper.h>
13
14
namespace
ns3
15
{
16
17
/**
18
* @ingroup packetsink
19
* @brief A helper to make it easier to instantiate an ns3::PacketSinkApplication
20
* on a set of nodes.
21
*/
22
class
PacketSinkHelper
:
public
ApplicationHelper
23
{
24
public
:
25
/**
26
* Create a PacketSinkHelper to make it easier to work with PacketSinkApplications
27
*
28
* @param protocol the name of the protocol to use to receive traffic
29
* This string identifies the socket factory type used to create
30
* sockets for the applications. A typical value would be
31
* ns3::TcpSocketFactory.
32
* @param address the address of the sink,
33
*
34
*/
35
PacketSinkHelper
(
const
std::string& protocol,
const
Address
& address);
36
};
37
38
}
// namespace ns3
39
40
#endif
/* PACKET_SINK_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::PacketSinkHelper
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
Definition
packet-sink-helper.h:23
ns3::PacketSinkHelper::PacketSinkHelper
PacketSinkHelper(const std::string &protocol, const Address &address)
Create a PacketSinkHelper to make it easier to work with PacketSinkApplications.
Definition
packet-sink-helper.cc:16
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
applications
helper
packet-sink-helper.h
Generated on Wed Dec 4 2024 18:20:37 for ns-3 by
1.11.0