A Discrete-Event Network Simulator
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
14namespace 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 */
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 */
a polymophic address class
Definition address.h:90
A helper to make it easier to instantiate an application on a set of nodes.
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
PacketSinkHelper(const std::string &protocol, const Address &address)
Create a PacketSinkHelper to make it easier to work with PacketSinkApplications.
Every class exported by the ns3 library is enclosed in the ns3 namespace.