ns3::PacketSinkHelper Class Reference
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
More...
#include <packet-sink-helper.h>
List of all members.
Detailed Description
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
Constructor & Destructor Documentation
ns3::PacketSinkHelper::PacketSinkHelper |
( |
std::string |
protocol, |
|
|
Address |
address | |
|
) |
| | |
Create a PacketSinkHelper to make it easier to work with PacketSinkApplications
- Parameters:
-
| protocol | the name of the protocol to use to receive traffic This string identifies the socket factory type used to create sockets for the applications. A typical value would be ns3::TcpSocketFactory. |
| address | the address of the sink, |
Member Function Documentation
Install an ns3::PacketSinkApplication on each node of the input container configured with all the attributes set with SetAttribute.
- Parameters:
-
| nodeName | The name of the node on which a PacketSinkApplication will be installed. |
Install an ns3::PacketSinkApplication on each node of the input container configured with all the attributes set with SetAttribute.
- Parameters:
-
| node | The node on which a PacketSinkApplication will be installed. |
Install an ns3::PacketSinkApplication on each node of the input container configured with all the attributes set with SetAttribute.
- Parameters:
-
| c | NodeContainer of the set of nodes on which a PacketSinkApplication will be installed. |
void ns3::PacketSinkHelper::SetAttribute |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
Helper function used to set the underlying application attributes.
- Parameters:
-
| name | the name of the application attribute to set |
| value | the value of the application attribute to set |
The documentation for this class was generated from the following file:
- src/helper/packet-sink-helper.h