X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2Fshare.tcl;fp=tests%2Fshare.tcl;h=d46b32f61f50b827eedf818a855872b4e3113ab6;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/share.tcl b/tests/share.tcl new file mode 100755 index 0000000..d46b32f --- /dev/null +++ b/tests/share.tcl @@ -0,0 +1,23 @@ +# The share interface support is not yet completely done, since +# you can't use it with the multi interface. + +package require TclCurl + +set sHandle [curl::shareinit] +$sHandle share dns + +set easyHandle1 [curl::init] +set easyHandle2 [curl::init] + +$easyHandle1 configure -url http://127.0.0.1/ -share $sHandle +$easyHandle2 configure -url http://127.0.0.1/~andres/ -share $sHandle + +$easyHandle1 perform +$easyHandle2 perform + +$easyHandle1 cleanup +$easyHandle2 cleanup + +$sHandle unshare dns +$sHandle cleanup +