[Click] Writing own element

Amita Ekbote amita.ekbote at gmail.com
Fri Mar 5 23:18:42 EST 2010


Thanks! It looks like that was the problem :)

On Fri, Mar 5, 2010 at 10:15 PM, Ian Rose <ianrose at eecs.harvard.edu> wrote:

> The error (or at least one error) is in your config.  This is not allowed
> because you are using w[0] twice.
>
>
> > src -> [1] w -> output
> > src -> [0] w -> output
>
> This translates to:
>
> > src -> [1] w [0] -> output
> > src -> [0] w [0] -> output
>
> Which I don't think is what you mean.  Specify the output ports explicitly:
>
> > src -> [1] w [1] -> output
> > src -> [0] w [0] -> output
>
> - Ian
>
>
> Amita Ekbote wrote:
>
>> Hey,
>>
>> Sorry for the vague question. There are no compiler errors.
>> Here is the declarations
>>  const char *class_name() const { return "WlaRate"; }
>>  const char *port_count() const { return "4/0-2"; }
>>  const char *processing() const { return "aah/a"; }
>>
>> I am running something like this..
>> w :: wlarate
>>
>> input[0] -> [2] w
>> input[1] -> [3] w
>> src -> [1] w -> output
>> src -> [0] w -> output
>>
>>
>> I get the following error when I run it.
>> illegal reuse of 'w :: WlaRate' push output 0
>>
>> I have used the same element with 3 inputs, I just needed to add one
>> agnostic input port. I am assuming it expects [1]w to be a push too , if
>> that's the case I dont know how to solve it and was hoping on suggestions as
>> to what could be the problem.
>>
>> Thanks
>> On Fri, Mar 5, 2010 at 9:37 PM, Ian Rose <ianrose at eecs.harvard.edu<mailto:
>> ianrose at eecs.harvard.edu>> wrote:
>>
>>    What do you mean by "nothing works"?  Are you getting compiler
>>    errors? Or does click give errors when you try to run it?  Can you
>>    post your class' port_count() and processing() methods, your router
>>    config, and the error message?
>>
>>    - Ian
>>
>>
>>
>>    Amita Ekbote wrote:
>>
>>        Hey,
>>
>>        I am writing an element with 4 input ports and I need the
>>        processing to be 2
>>        agnostic and 2 push. I have tried all sorts of combinations and
>>        nothing
>>        works. Cant we do "aahh" ? or ahah? or just hha ?
>>
>>
>>
>>
>> --
>> Amita Ekbote
>>
>


-- 
Amita Ekbote


More information about the click mailing list