[Olsr-dev] Timeout Function

ZioPRoTo (Saverio Proto) (spam-protected)
Thu Jul 1 11:28:17 CEST 2010


> How can I register my timeout function into olsrd-0.6 to execute some
> operations?
> For example, if the name of my function is "my_timeout", how can I register
> this function to olsrd know when call my_timeout function?

I hope I understand your question.

you can use the olsr_start_time function to register a function to a
timer. Everytime the timer expires your function will be called.

See an example here:
http://olsr.org/git/?p=olsrd.git;a=blob;f=lib/obamp/src/obamp.c;h=286df98c05cee6fe186c988747dff063343e35c5;hb=master#l1828

Saverio




More information about the Olsr-dev mailing list