ns-3
|
A helper to make it easier to instantiate an ns3::BulkSendApplication on a set of nodes. More...
#include <bulk-send-helper.h>
Public Member Functions | |
BulkSendHelper (std::string protocol, Address address) | |
void | SetAttribute (std::string name, const AttributeValue &value) |
ApplicationContainer | Install (NodeContainer c) const |
ApplicationContainer | Install (Ptr< Node > node) const |
ApplicationContainer | Install (std::string nodeName) const |
A helper to make it easier to instantiate an ns3::BulkSendApplication on a set of nodes.
ns3::BulkSendHelper::BulkSendHelper | ( | std::string | protocol, |
Address | address | ||
) |
Create an BulkSendHelper to make it easier to work with BulkSendApplications
protocol | the name of the protocol to use to send traffic by the applications. This string identifies the socket factory type used to create sockets for the applications. A typical value would be ns3::UdpSocketFactory. |
address | the address of the remote node to send traffic to. |
References ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Install an ns3::BulkSendApplication on each node of the input container configured with all the attributes set with SetAttribute.
c | NodeContainer of the set of nodes on which an BulkSendApplication will be installed. |
References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), and ns3::NodeContainer::End().
ApplicationContainer ns3::BulkSendHelper::Install | ( | Ptr< Node > | node | ) | const |
Install an ns3::BulkSendApplication on the node configured with all the attributes set with SetAttribute.
node | The node on which an BulkSendApplication will be installed. |
ApplicationContainer ns3::BulkSendHelper::Install | ( | std::string | nodeName | ) | const |
Install an ns3::BulkSendApplication on the node configured with all the attributes set with SetAttribute.
nodeName | The node on which an BulkSendApplication will be installed. |
void ns3::BulkSendHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Helper function used to set the underlying application attributes, _not_ the socket attributes.
name | the name of the application attribute to set |
value | the value of the application attribute to set |
References ns3::ObjectFactory::Set().