Use ZEND only for callbacks, rather than RECV_*
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Ping.pm
index 2eeda3b..09e6781 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Ping.pm,v 1.18 2006-12-15 17:23:27 mike Exp $
+# $Id: Ping.pm,v 1.20 2007-02-23 15:03:44 mike Exp $
 
 # See the "Main" test package for documentation
 
@@ -19,7 +19,7 @@ sub start {
     my($conn) = @_;
 
     $conn->irspy_connect(undef, {},
-                        ZOOM::Event::RECV_APDU, \&connected,
+                        ZOOM::Event::ZEND, \&connected,
                         exception => \&not_connected);
 }
 
@@ -44,6 +44,7 @@ sub maybe_connected {
                            encapsulation resultCount negotiationModel
                            duplicationDetection queryType104
                            pQESCorrection stringSchema)) {
+           #print STDERR "\$conn->option('init_opt_$opt') = '", $conn->option("init_opt_$opt"), "'\n";
            $conn->record()->store_result('init_opt', option => $opt)
                if $conn->option("init_opt_$opt");
        }