A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PacketSocketHelper Class Reference

Give ns3::PacketSocket powers to ns3::Node. More...

#include <packet-socket-helper.h>

Public Member Functions

void Install (Ptr< Node > node) const
 Aggregate an instance of a ns3::PacketSocketFactory onto the provided node. More...
 
void Install (std::string nodeName) const
 Aggregate an instance of a ns3::PacketSocketFactory onto the provided node. More...
 
void Install (NodeContainer c) const
 For each node in the provided container, aggregate an instance of a ns3::PacketSocketFactory. More...
 

Detailed Description

Give ns3::PacketSocket powers to ns3::Node.

Definition at line 31 of file packet-socket-helper.h.

Member Function Documentation

void ns3::PacketSocketHelper::Install ( Ptr< Node node) const

Aggregate an instance of a ns3::PacketSocketFactory onto the provided node.

Parameters
nodeNode on which to aggregate the ns3::PacketSocketFactory.

Definition at line 37 of file packet-socket-helper.cc.

References ns3::Object::AggregateObject().

Referenced by ns3::SpectrumIdealPhyTestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), Install(), main(), OcbWifiMacTestCase::PostDeviceConfiguration(), NetAnimExperiment::Run(), and Experiment::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::PacketSocketHelper::Install ( std::string  nodeName) const

Aggregate an instance of a ns3::PacketSocketFactory onto the provided node.

Parameters
nodeNameThe name of the node on which to aggregate the ns3::PacketSocketFactory.

Definition at line 44 of file packet-socket-helper.cc.

References Install().

+ Here is the call graph for this function:

void ns3::PacketSocketHelper::Install ( NodeContainer  c) const

For each node in the provided container, aggregate an instance of a ns3::PacketSocketFactory.

Parameters
cNodeContainer of the set of nodes to aggregate the ns3::PacketSocketFactory on.

Definition at line 28 of file packet-socket-helper.cc.

References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and Install().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: