rtc/cts and simulator

5 views
Skip to first unread message

O2

unread,
Mar 30, 2012, 4:37:24 PM3/30/12
to EEL 6591
Hi Gokul,
I find that in the MacLow::ReceiveOk function, there is a class naming
simulator, and it has a function below
m_sendDataEvent = Simulator::Schedule (GetSifs (),

&MacLow::SendDataAfterCts, this,
hdr.GetAddr1 (),
hdr.GetDuration (),
txMode);
It is sending data after receiving CTS. So where is the data sending
to? The hdr.GetAddr1 () seems to be the receiver address, which is the
node itself. Besides, I can't find the simulator class in ns3.
Thanks for help.

Gokul Bhat

unread,
Mar 31, 2012, 4:56:40 PM3/31/12
to eel65...@googlegroups.com
The simulator class is defined in simulator.cc that is present in the core folder of the src directory. It is mainly used to schedule events in NS3 and it is a global object. 
The hdr.GetAddr1(), I believe is the source address. Check the declaration of SendDataAfterCts function. 
Reply all
Reply to author
Forward
0 new messages