Hi All
I write a program in scratch/ folder, which will call function A (eg, print a word)in src/ folder periodically. Through searching the Internet, I find that it can be realized by inserting Simulator::Schedule(call_interval, &function A, this) in function A to call function itself after a specific time. The question is, how I can call function A from my program in scratch/? I have tried something like the following line. "Simulator::Schedule (Seconds (0.0), &ns3::ClassA::functionA)". There is no error during compiling and executing processes. However, no word is printed on my screen.
Why? Is something wrong with this method?
Grateful for any assistance!