33 #include "ns3/callback.h"
34 #include "ns3/dsr-options.h"
35 #include "ns3/dsr-routing.h"
36 #include "ns3/ipv4-route.h"
38 #include "ns3/names.h"
39 #include "ns3/node-container.h"
40 #include "ns3/node-list.h"
43 #include "ns3/tcp-l4-protocol.h"
44 #include "ns3/udp-l4-protocol.h"
58 : m_agentFactory(o.m_agentFactory)
82 agent->SetDownTarget(udp->GetDownTarget());
Hold a value for an Attribute.
DSR helper class to manage creation of DSR routing instance and to insert it on a node as a sublayer ...
ObjectFactory m_agentFactory
DSR factory.
Ptr< ns3::dsr::DsrRouting > Create(Ptr< Node > node) const
DsrHelper()
Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes.
void Set(std::string name, const AttributeValue &value)
Set attribute values for future instances of DSR that this helper creates.
This is the implementation of the ICMP protocol as described in RFC 792.
Ptr< Object > Create() const
Create an Object instance of the configured TypeId.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together.
Smart pointer class similar to boost::intrusive_ptr.
TCP socket creation and multiplexing/demultiplexing.
Implementation of the UDP protocol.
void Send(Ptr< Packet > packet, Ipv4Address source, Ipv4Address destination, uint8_t protocol, Ptr< Ipv4Route > route)
This function is called by higher layer protocol when sending packets.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...