[Click] Script element

Eddie Kohler kohler at cs.ucla.edu
Thu Mar 11 13:35:54 EST 2010


I think there's a bit of confusion about "execution" here.  In Click a 
configuration is set up all as a unit -- and then everything starts 
running.  in your example the SCript will run after the configuration is 
initialized.  I think this means "after line 1 is executed" but the 
terms are wrong.


On 3/11/10 10:10 AM, Jimmy wrote:
> Hi all,
>
> I read the script element description and know that it can be used to
> configure the network. I also used it to implement some simple
> comfiguration.
>
> My question is how and when is this element executed?  Below is a
> simple example:
>
> 1  Source ->  Queue ->  UnQueue ->  Print ->  Discard;
> 2  Script( ... );
>
> So line 1 just sets the network and line 2 implements the
> configuration. Is line 2 executed parallel with line 1? Or is it
> executed after line 1 is executed?
>
> Thanks.


More information about the click mailing list