Merge branch 'newpc92timings' of /scm/spider into newpc92timings
[spider.git] / perl / DXProtout.pm
index 4f4da1e50677953c3d1a8235703f0e22849abff2..75903f02912e25b2d0c29b808635a8779f799415 100644 (file)
@@ -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
 {