[Ns-developers] Periodically reset attribute

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Thu Jun 25 23:34:30 PDT 2009


the quick solution:

void MyFunction (void)
{
  // do the setting
  Simulator::Schedule (Seconds (N), &MyFunction);
}

Simulator::Schedule (Seconds (N), &MyFunction);




On Thu, 2009-06-25 at 13:08 -0300, Flavio Kubota wrote:
> Hi,
> 
> I have an attribute at MAC layer and I want to set this attribute to zero in
> every N seconds. Can anyone give me some reference of how to do it? Are
> there any class that do something similar at ns-3 code?
> 
> --
> Flavio Kubota
> MSc Computer Science Student
> IC / UNICAMP



More information about the Ns-developers mailing list