X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=samples%2Fnet-z3950-zoom%2Fzoomtst3.pl;h=16c144078a32ad7221cb7d01223b62f27bfaa891;hb=4c3fdc54c3f333c976bf4eec94c69de75f8d8d4c;hp=934e329eb8baf47930a5927699a6bfe87aa68f82;hpb=7fb41a692e39db8ae85613ffb3897a06438f32e7;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/net-z3950-zoom/zoomtst3.pl b/samples/net-z3950-zoom/zoomtst3.pl index 934e329..16c1440 100644 --- a/samples/net-z3950-zoom/zoomtst3.pl +++ b/samples/net-z3950-zoom/zoomtst3.pl @@ -1,4 +1,4 @@ -# $Id: zoomtst3.pl,v 1.3 2006-04-07 07:49:11 mike Exp $ +# $Id: zoomtst3.pl,v 1.5 2006-04-07 12:15:03 mike Exp $ # # See ../README for a description of this program. # perl -I../../blib/lib -I../../blib/arch zoomtst3.pl [...] @@ -37,11 +37,15 @@ for (my $i = 0; $i < $n; $i++) { } # Network I/O. Pass number of connections and array of connections -while ((my $i = Net::Z3950::ZOOM::event([ @z ])) != 0) { +while ((my $i = Net::Z3950::ZOOM::event(\@z)) != 0) { my $ev = Net::Z3950::ZOOM::connection_last_event($z[$i-1]); print("connection ", $i-1, ": event $ev (", - Net::Z3950::ZOOM::eventstr($ev), ")\n"); - ### It would be nice to display results as they come in. + Net::Z3950::ZOOM::event_str($ev), ")\n"); + # It would be nice to display results as they come in, but the + # ability to do so is dependent on the END event, which was + # introduced only in YAZ 2.1.17. If you have a sufficiently new + # YAZ, please use the alternative "async.pl", which is similar to + # this program except in its asynchronous display. } # No more to be done. Inspect results