X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=perl%2FDXProtout.pm;h=75903f02912e25b2d0c29b808635a8779f799415;hb=refs%2Fheads%2Fnewpc92timings;hp=4f4da1e50677953c3d1a8235703f0e22849abff2;hpb=93292dcd622b1505d2cbab334277c89e7c8afd27;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 4f4da1e5..75903f02 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -380,6 +380,7 @@ sub _gen_pc92 my $s = "PC92^$main::mycall^" . gen_pc9x_t() . "^$sort"; for (@_) { $s .= "^" . _encode_pc92_call($_, $ext); + $ext = 0; # only the first slot has an ext. } return $s . '^H99^'; } @@ -415,6 +416,17 @@ sub pc92c return _gen_pc92('C', 1, @_); } +# send a keep alive +sub pc92k +{ + my $nref = shift; + my $s = "PC92^$main::mycall^" . gen_pc9x_t() . "^K"; + $s .= "^" . _encode_pc92_call($nref, 1); + $s .= "^" . scalar $nref->nodes; + $s .= "^" . scalar $nref->users; + return $s . '^H99^'; +} + # send a 'find' message sub pc92f {