[Click] Misc Click questions...

Beyers Cronje bcronje at gmail.com
Tue Apr 22 17:46:36 EDT 2008


Hi Nicholas,

a:  Is there a good example on using END_CALL on fromdump that someone
> has?


See the thread over at
http://www.mail-archive.com/click@amsterdam.lcs.mit.edu/msg01680.html

In summary the config from Robert Ross works fine:


fd::FromDump(/tmp/foo.trace, TIMING true, FORCE_IP false, ACTIVE false,
END_CALL restarter.step) -> Print(TIMESTAMP true) -> Discard;

restarter::Script(init first_offset $(fd.filepos),
         print "First Offset: " $first_offset ,
         write fd.active true,
         pause,
         write fd.filepos $first_offset,
         write fd.reset_timing,
         loop)

b:  Is there a way to trap Cntr-C on an element (interrupt)?


I think the DriverManager element can help you out
http://read.cs.ucla.edu/click/elements/drivermanager


More information about the click mailing list