#include "ns3/point-to-point-channel.h"
#include "ns3/point-to-point-net-device.h"
Ptr <PointToPointChannel> pChannel = DynamicCast<PointToPointChannel> (channel);
NS_ASSERT (pChannel);
pChannel->SetAttribute ("Delay", TimeValue (MilliSeconds (20)));
But i still feel, the right way to do it is , by constructing the links one by one, or in some for loop , by using PointToPointHelper.
hey,
I saw that example. But i don't know how to set a Delay attribute to a Channel object. We can do that only if we have PointToPointChannel object. I don'tknow how to retrieve a PointToPointChannel object from a Channel object. Sorry i got stuck with issue so long.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.