X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml%2FPing.pm;h=a9d72083c213df926ef80157c83453973ac9c7fe;hb=8c5872e6e9c50d45da129fe90f98e57a6fd486f6;hp=a1b0a6a122ba6e3a8a792ef69d819c4216b9ecb0;hpb=3c6694242819ce0ca3586264080342315d420cc8;p=spider.git diff --git a/perl/DXXml/Ping.pm b/perl/DXXml/Ping.pm index a1b0a6a1..a9d72083 100644 --- a/perl/DXXml/Ping.pm +++ b/perl/DXXml/Ping.pm @@ -30,6 +30,19 @@ sub handle_input my $self = shift; my $dxchan = shift; + if ($self->{to} eq $main::mycall) { + if ($self->{s} eq '1') { + my $rep = DXXml::Ping->new(to=>$self->{o}, + s=>'0', + oid=>$self->{id}, + ot=>$self->{t} + ); + } else { + handle_ping_reply($dxchan, $self->{o}, $self->{ot}, $self->{oid}); + } + } else { + $self->route($dxchan); + } } sub topcxx @@ -68,6 +81,8 @@ sub handle_ping_reply { my $fromdxchan = shift; my $from = shift; + my $ot = shift; + my $oid = shift; my $fromxml; if (ref $from) {