Re: Timer callback function does not fire
Beyers Cronje <[email protected]> Sun, 28 Apr 2013 09:28:13 +0200
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <CAOO3n8X9y4qCyh-TbEj0P7cc774zvU1SadWbgbF2hyhEDRC5Tg@mail.gmail.com> |
You have to initialize the Timer object itself as well, see http://read.cs.ucla.edu/click/doxygen/class_timer.html#_details Also grep the elements directory from Timer and you'll find many examples of elements using Timer. Beyers On Sat, Apr 27, 2013 at 8:56 PM, Momina Khan <[email protected]> wrote: > Dear All, > hope someone can help me with this ... i have simple enough code moslty > taken from TestTimer class. I just want to create a timer that fires a > callback function. I have tried initializing the Timer with a (Callback > function f, user_data) in which case f should be called when > timer.schedule_now() is called in initalize(). > i have put click_chatter in the initialize() function and the callback but > only the chatter from initialize comes up in dmesg. > > If I try to initialize the timer with Timer(Element *) on a call to > timer.schedule_now() the element class's run_timer() should be called but > no chatter shows up in dmesg. > > plz help i have spent some days on this problem and seemed to have gone > through most code files for the timer class and TimerTest but to no avail! > > thank u in advance > momina > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click >