use DXUtil;
use DXM;
-use Carp;
+use DXDebug;
use strict;
# periodic update of users, plus keep link alive device (always H99)
sub pc50
{
- my $me = DXCluster->get_exact($main::mycall);
- my $n = $me->users ? $me->users : '0';
+ my $n = shift;
+ $n = 0 unless $n >= 0;
return "PC50^$main::mycall^$n^H99^";
}
my ($to, $from, $val) = @_;
return "PC51^$to^$from^$val^";
}
+
+# clx remote cmd send
+sub pc84
+{
+ my($fromnode, $tonode, $call, $msg) = @_;
+ return "PC84^$tonode^$fromnode^$call^$msg^~";
+}
+
+# clx remote cmd reply
+sub pc85
+{
+ my($fromnode, $tonode, $call, $msg) = @_;
+ return "PC85^$tonode^$fromnode^$call^$msg^~";
+}
1;
__END__
+
+
+