[Click] FromDump restart

Eddie Kohler kohler at cs.ucla.edu
Fri Nov 30 11:10:08 EST 2007


nameofcompoundelement/nameofcomponent

e.g.

elementclass C { foo :: Idle };

c :: C;

Script(print c/foo.class);

Eddie


Robert Ross wrote:
> Is there any way to do the reverse?  I have an ElementClass which 
> contains elements from which I need to read handler values from a script 
> element.  How can I reference elements which are contained inside an 
> ElementClass from a script element?
>  
> 
> Robert A. Ross
> DSCI Inc.
> 609-509-5139
> 
> 
> ------------------------------------------------------------------------
> *From:* Eddie Kohler [mailto:kohler at cs.ucla.edu]
> *Sent:* Thu 11/29/2007 4:05 PM
> *To:* Robert Ross
> *Cc:* click at amsterdam.lcs.mit.edu
> *Subject:* Re: [Click] FromDump restart
> 
> There is no way to connect to globally scoped element declarations from 
> inside
> an ElementClass.
> 
> (You can refer to global elements inside configuration strings, however.)
> 
> Eddie
> 
> 
> 
> Robert Ross wrote:
>  > 
>  > Is it possible to reference globally scoped element declarations from
>  > inside an ElementClass?
>  >
>  > For example:
>  >
>  > ------------------------------------------
>  >
>  > drop_dump :: TopDump(dump.pcap, SNAPLEN 0);
>  >
>  > Elementclass test {
>  >       input -> drop_dump -> output;
>  > };
>  >
>  > ------------------------------------------
>  >
>  > This throws an error indicating that "drop_dump" is an unknown element.
>  >
>  > Robert Ross
>  > DSCI Inc.
>  >
>  >
>  > _______________________________________________
>  > click mailing list
>  > click at amsterdam.lcs.mit.edu
>  > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 


More information about the click mailing list