File: t.tcl

package info (click to toggle)
sauce 0.9.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: tcl: 4,377; sh: 186; makefile: 129
file content (15 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# LD_LIBRARY_PATH=../chiark-tcl/adns:../chiark-tcl/base valgrind --db-attach=yes tclsh t.tcl

load chiark_tcl_adns-1.so

proc pproc {x} { proc $x {args} "puts \"$x \$args\"" }
pproc pinfo
pproc yes
pproc no
pproc maybe
set adns [adns new-resolver -errcallback pinfo]
set q [eval \
	[list adns asynch yes no maybe 14 cname chiark.greenend.org.uk] \
	[list -resolver $adns]]
vwait spong