Create a ping application and associate it to a node. More...
#include "ping-helper.h"
 Collaboration diagram for ns3::PingHelper:Public Member Functions | |
| PingHelper () | |
| Create a PingHelper which is used to make life easier for people wanting to use ping Applications.   | |
| PingHelper (Address remote, Address local=Address()) | |
| Create a PingHelper which is used to make life easier for people wanting to use ping Applications.   | |
| ApplicationContainer | Install (NodeContainer nodes) const | 
| Install a Ping application on each Node in the provided NodeContainer.   | |
| ApplicationContainer | Install (Ptr< Node > node) const | 
| Install a Ping application on the provided Node.   | |
| ApplicationContainer | Install (std::string nodeName) const | 
| Install a Ping application on the provided Node.   | |
| void | SetAttribute (std::string name, const AttributeValue &value) | 
| Configure ping applications attribute.   | |
Private Member Functions | |
| Ptr< Application > | InstallPriv (Ptr< Node > node) const | 
| Do the actual application installation in the node.   | |
Private Attributes | |
| ObjectFactory | m_factory | 
| Object factory.   | |
Create a ping application and associate it to a node.
This class creates one or multiple instances of ns3::Ping and associates it/them to one/multiple node(s).
Definition at line 47 of file ping-helper.h.
| ns3::PingHelper::PingHelper | ( | ) | 
Create a PingHelper which is used to make life easier for people wanting to use ping Applications.
Definition at line 33 of file ping-helper.cc.
References m_factory, and ns3::ObjectFactory::SetTypeId().
 Here is the call graph for this function:Create a PingHelper which is used to make life easier for people wanting to use ping Applications.
| remote | The address which should be pinged | 
| local | The source address | 
Definition at line 38 of file ping-helper.cc.
References m_factory, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
 Here is the call graph for this function:| ApplicationContainer ns3::PingHelper::Install | ( | NodeContainer | nodes | ) | const | 
Install a Ping application on each Node in the provided NodeContainer.
| nodes | The NodeContainer containing all of the nodes to get a Ping application. | 
Definition at line 65 of file ping-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and InstallPriv().
Referenced by CsmaPingTestCase::DoRun(), and AodvExample::InstallApplications().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ApplicationContainer ns3::PingHelper::Install | ( | Ptr< Node > | node | ) | const | 
Install a Ping application on the provided Node.
The Node is specified directly by a Ptr<Node>
| node | The node to install the Ping application on. | 
Definition at line 52 of file ping-helper.cc.
References InstallPriv().
 Here is the call graph for this function:| ApplicationContainer ns3::PingHelper::Install | ( | std::string | nodeName | ) | const | 
Install a Ping application on the provided Node.
The Node is specified by a string that must have previously been associated with a Node using the Object Name Service.
| nodeName | The node to install the Ping application on. | 
Definition at line 58 of file ping-helper.cc.
References InstallPriv().
 Here is the call graph for this function:
      
  | 
  private | 
Do the actual application installation in the node.
| node | the node | 
Definition at line 77 of file ping-helper.cc.
References ns3::ObjectFactory::Create(), and m_factory.
Referenced by Install().
 Here is the call graph for this function:
 Here is the caller graph for this function:| void ns3::PingHelper::SetAttribute | ( | std::string | name, | 
| const AttributeValue & | value | ||
| ) | 
Configure ping applications attribute.
| name | attribute's name | 
| value | attribute's value | 
Definition at line 46 of file ping-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
Referenced by AodvExample::InstallApplications().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Object factory.
Definition at line 111 of file ping-helper.h.
Referenced by PingHelper(), InstallPriv(), and SetAttribute().