590b94d7f62bffe1f73dfb80fb0a75f9ce20098d
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Ping.pm
1 # $Id: Ping.pm,v 1.4 2006-06-21 16:26:29 mike Exp $
2
3 # See the "Main" test package for documentation
4
5 package ZOOM::IRSpy::Test::Ping;
6
7 use 5.008;
8 use strict;
9 use warnings;
10
11 use ZOOM::IRSpy::Test;
12 our @ISA;
13 @ISA = qw(ZOOM::IRSpy::Test);
14
15
16 sub run {
17     my $this = shift();
18     my $irspy = $this->irspy();
19     my $pod = $irspy->pod();
20
21     $pod->callback(ZOOM::Event::CONNECT, \&connected);
22     my $err = $pod->wait($irspy);
23
24     return 0;
25 }
26
27
28 sub connected {
29     my($conn, $irspy, $rs, $event) = @_;
30
31     my $rec = $irspy->record($conn);
32     $irspy->log("irspy_test", $conn->option("host"), " connected");
33     ### Note the successful connection in $rec
34     return 0;
35 }
36
37
38 1;