Re: Question about args parsing .consume()

Eddie Kohler <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <CAF0C5SL9rM=ibvKsOFQz4uPVHdhdiFCo3a-ABsDOtE3qe6wqsw@mail.gmail.com>
Hi Markku,

That's an unfortunate error; I can see how you encountered it. I've
added a warning.

Eddie


On Wed, Apr 18, 2012 at 6:39 AM, Markku Savela <[email protected]> wrote:
> Ok, my goof...
>
> On 04/18/2012 12:51 PM, Markku Savela wrote:
>>       if (Args(conf, this, errh)
>>       .read_mp("IPSEC", ElementCastArg("IPsec"), _ipsec)
>>       .consume()<  0)
>>       return -1;
>
> If written as
>
>     if (Args(this, errh).bind(conf)
>        .read_mp("IPSEC", ElementCastArg("IPsec"), _ipsec)
>         .consume() < 0)
>
> it works as expected.
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click

_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.