[Click] On initialize()
Eddie Kohler
kohler at CS.UCLA.EDU
Tue Mar 22 11:35:03 EST 2005
Hi Chema,
We generally implement tasks like this usign a Timer that's set in initialize(),
or a Task. I strongly suggest you go this way. But the configure_phase()
mechanism can be used to determine the configure+initialize order; elements are
config/initialized in increasing configure_phase order.
E
José María González wrote:
> Hi,
>
> I'm wondering whether there is any mechanism in click to permit elements
> carrying out some work between initialize() and the start of the packet
> processing. I'm writing an element whose very first task is to beacon
> its existence. I can't send the beacon during initialize(), as the next
> element (a Queue) is no initialized yet (click seems to initialize()
> elements following the packet stream direction), so it has to be after
> that.
>
> As an alternative, is there any mechanism to alter the order in which
> elements are initialized?
>
> Thanks in advance.
> -Chema
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list