Dear all,
I would like to access the trace sources defined in the Queue of a
CsmaNetDevice. My set up is the following:
1 - CsmaHelper csma;
NetDeviceContainer devices = csma.Install (nodes);
2- I have defined my trace sink and If I for instance try to access a
source defined in the CsmaNetDevice object, it works, e.g.:
devices.Get(0)->TraceConnectWithoutContext ("MacTx",
MakeCallback(&myTraceSink));
However, I can not access the trace sources defined in the Queue class
of the CsmaNetDevice, so for instance the following does not work:
devices.Get(0)->TraceConnectWithoutContext ("Enqueue",
MakeCallback(&myTraceSink));
I wanted to try obtaining a CsmaNetDevice from "devices", and then
calling GetQueue() to apply "TraceConnectWithoutContext" directly on
the queue object, for instance:
devices.Get(0)->GetQueue()->TraceConnectWithoutContext ("Enqueue",
MakeCallback(&myTraceSink));
But the previous does not work because, "devices.Get(0)" is a
NetDevice, not a CsmaNetDevice. How could I recover a CsmaNetDevice
instead of a NetDevice in the previous example ?
Best Regards
Daniel
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to
ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to
ns-3-users+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/ns-3-users?hl=en.