[Click] Steping a WAIT instruction in a script

Eddie Kohler kohler at cs.ucla.edu
Tue Mar 13 00:52:09 EST 2007


Hi Laercio,

You probably want to use the HandlerCall interface in 
include/click/handlercall.hh.

This can be as simple as

   HandlerCall::call_read("elementname.handlername", this /* for context */);

Also check out elements like Counter, which has a COUNT_CALL keyword argument 
that specifies a handler.
Eddie


Laercio Cruvinel Junior wrote:
> Hello all,
> I need to make some interactions between a named click script and an also
> named element from the same Click configuration file. Namely, whenever the
> element receives a packet, a WAIT instruction in the script should step.
> Is it possible to call the script's step handler from inside the element?
> In general, how do I invoke an element's handler from inside another
> element?
> Thanks in advance.
> 
> Best regards,
> 
> Laercio Cruvinel
> Instituto Superior Tecnico
> Lisbon, Portugal
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list