X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FPing.pm;h=4251b597cdb5b858344294b0d7ca4b8cc013c89d;hp=a85adc513da7c4b9c86d4cf97688e556a85f752a;hb=12b4813eb297eda51afd4d9d2de0647657181126;hpb=0c96fa55a5e2cf8ff545c0f3301584bbf38612a9 diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index a85adc5..4251b59 100644 --- a/lib/ZOOM/IRSpy/Test/Ping.pm +++ b/lib/ZOOM/IRSpy/Test/Ping.pm @@ -1,4 +1,4 @@ -# $Id: Ping.pm,v 1.24 2007-05-03 14:43:31 mike Exp $ +# $Id: Ping.pm,v 1.26 2007-05-08 12:18:59 mike Exp $ # See the "Main" test package for documentation @@ -21,7 +21,14 @@ sub start { my $class = shift(); my($conn) = @_; - $conn->irspy_connect(undef, {}, + my %options = (); + my $xc = $conn->record()->xpath_context(); + my $user = $xc->find("e:serverInfo/e:authentication/e:user"); + my $password = $xc->find("e:serverInfo/e:authentication/e:password"); + $options{user} = $user if $user; + $options{password} = $password if $password; + + $conn->irspy_connect(undef, \%options, ZOOM::Event::ZEND, \&connected, exception => \¬_connected); }