[Click] Write handler in CLICK
Michael Voorhaen
michael.voorhaen at ua.ac.be
Mon Aug 18 13:13:11 EDT 2008
Hi Rajesh,
All arguments are passed as a string to the handle method. You can
parse this string using the cp_va_kparse (or the old cp_va_parse)
helpers, just like writing the configure method. This is not a must,
but I find it to be the easiest and most click-like way to implement
this.
I recommend having a look at the slides 27-30, we explain how to use
and implement read/write handlers there:
http://www.pats.ua.ac.be/content/software/click-1.6/coding.pdf
Good Luck,
Michael
-------------------------
IBBT - PATS research group
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.30
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.32.91
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be/michael.voorhaen
On 18 Aug 2008, at 17:38, Rajesh Prasad wrote:
> Hi,
>
> Can anyone please give me some direction how the write handler
> passes the
> parameter( written below) in CLICK router.
>
> write_handler.pl srcr/sendmgr.max_xmits 1
> write_handler.pl srcr/arp.insert 5.191.186.212 00:11:95:BF:BA:D4
> write_handler.pl srcr/set_sr.set_route 5.137.112.229 5.22.131.89
>
> Thanks in advance
> Rajesh
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list