I want to know which attributes of the ns3::UdpEchoClientHelper::SetAttribute()can be set.
Here are the function definitions and parameter meanings:
void ns3::UdpEchoClientHelper::SetAttribute (std::string name,const AttributeValue & value )
Parameters
name the name of the attribute to set
value the value of the attribute to set
I couldn't find the answer I wanted on the official document of ns-3
This call can be used to set any of the object attributes. Since you're talking about the UdpEchoClient helper, it sets the attributes of UdpEchoClient, which you can see in the .cc source code:
Link for the file: https://gitlab.com/nsnam/ns-3-dev/-/blob/master/src/applications/model/udp-echo-client.cc?ref_type=heads#L47-L79
As you can see, the
.AddAttributecalls are defining the possible attributes that can be set, which in this case are:Interval,RemoteAddress,RemotePort,ToSandPacketSize.You can also see their value types (UintegerValue, TimeValue, AddressValue).
So you can call
This will configure UdpEchoClient applications created by this helper to send stop sending packets after the 1234 threshold is reached.