[Olsr-dev] missing arproaming-plugin
    Alessandro Gnagni 
    (spam-protected)
       
    Sat Apr 27 19:15:23 CEST 2013
    
    
  
Here is an example inside mdns plugin of a timer:
struct olsr_cookie_info *RouterElectionTimerCookie = NULL;
  struct olsr_cookie_info *HelloTimerCookie = NULL;
  struct olsr_cookie_info *InitCookie = NULL;
  RouterElectionTimerCookie = olsr_alloc_cookie("Router Election",
OLSR_COOKIE_TYPE_TIMER);
  HelloTimerCookie = olsr_alloc_cookie("Hello Packet",
OLSR_COOKIE_TYPE_TIMER);
  InitCookie = olsr_alloc_cookie("Init", OLSR_COOKIE_TYPE_TIMER);
  olsr_start_timer((unsigned int) INIT_TIMER * MSEC_PER_SEC, 0,
OLSR_TIMER_ONESHOT, initTimer, NULL,
		   InitCookie);
  olsr_start_timer((unsigned int) HELLO_TIMER * MSEC_PER_SEC, 0,
OLSR_TIMER_PERIODIC, helloTimer, NULL,
		   HelloTimerCookie);
  olsr_start_timer((unsigned int) ELECTION_TIMER * MSEC_PER_SEC, 0,
OLSR_TIMER_PERIODIC, electTimer, NULL,
                   RouterElectionTimerCookie);
Il 27/04/2013 14.15, Bastian Bittorf ha scritto:
> olsr_timer.h
> ??? e.g. where is olsr_timer_add()
> was is converted to another syntax? cannot find anything...
> olsr_clock ?
    
    
More information about the Olsr-dev
mailing list