[Click] Sharing info between elements
Dagang LI
dagang.li at student.kuleuven.ac.be
Wed May 4 10:52:10 EDT 2005
Hi Eddie & Ashwin,
Is using Handlers a better (recommanded) way over this kind of "direct
remote function call"? e.g. get the name of the element via a
configuration argument and then call its Handlers to access/manipulate
its internal variables. I suppose it is cleaner and more consistant, but
not sure if I understand the purpose of Handlers correctly.
Kind regards,
Dagang
Eddie Kohler wrote:
> Yes. One can design an "information element" whose sole purpose is to
> share information; see, for example, ScheduleInfo or
> IPRewriterPatterns. If element A has a pointer to element B, it can
> call methods on element B directly; we frequently do this, and usually
> give element B's name to element A via a configuration argument. See
> ICMPRewriter or FTPPortMapper for examples.
>
> E
>
> On May 2, 2005, at 11:05 PM, Ashwin Chandra wrote:
>
>> Is there an easy way of doing this in Click?
>>
>> Ash
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list