mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 07:47:10 +00:00
added AGW port
This commit is contained in:
parent
022706c9f4
commit
d4ff3dc3e6
2
Changes
2
Changes
@ -1,3 +1,5 @@
|
||||
21Dec04=======================================================================
|
||||
1. added AGW port no after an example by IW5DEZ.
|
||||
20Dec04=======================================================================
|
||||
1. updated create_prefix.pl to only use (supplied) wpxloc.raw and cty.dat
|
||||
2. Added IG9, GM/S, 4U1V and some other detail changes to make it compatible
|
||||
|
75
cmd/who.pl
75
cmd/who.pl
@ -1,36 +1,39 @@
|
||||
#
|
||||
# who : is online
|
||||
# a complete list of stations connected
|
||||
#
|
||||
# Copyright (c) 1999 Dirk Koopman G1TLH
|
||||
#
|
||||
# $Id$
|
||||
|
||||
|
||||
my $self = shift;
|
||||
my $dxchan;
|
||||
my @out;
|
||||
|
||||
push @out, " Callsign Type Started Name Ave RTT Link";
|
||||
|
||||
foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {
|
||||
my $call = $dxchan->call();
|
||||
my $t = cldatetime($dxchan->startt);
|
||||
my $type = $dxchan->is_node ? "NODE" : "USER";
|
||||
my $sort = " ";
|
||||
if ($dxchan->is_node) {
|
||||
$sort = "DXSP" if $dxchan->is_spider;
|
||||
$sort = "CLX " if $dxchan->is_clx;
|
||||
$sort = "DXNT" if $dxchan->is_dxnet;
|
||||
$sort = "AR-C" if $dxchan->is_arcluster;
|
||||
$sort = "AK1A" if $dxchan->is_ak1a;
|
||||
}
|
||||
my $name = $dxchan->user->name || " ";
|
||||
my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%5.2f", $dxchan->pingave) : " ";
|
||||
my $conn = $dxchan->conn;
|
||||
my $ip = '';
|
||||
$ip = $conn->{peerhost} if $conn && $conn->{peerhost};
|
||||
push @out, sprintf "%10s $type $sort $t %-10.10s $ping $ip", $call, $name;
|
||||
}
|
||||
|
||||
return (1, @out)
|
||||
#
|
||||
# who : is online
|
||||
# a complete list of stations connected
|
||||
#
|
||||
# Copyright (c) 1999 Dirk Koopman G1TLH
|
||||
#
|
||||
# $Id$
|
||||
|
||||
|
||||
my $self = shift;
|
||||
my $dxchan;
|
||||
my @out;
|
||||
|
||||
push @out, " Callsign Type Started Name Ave RTT Link";
|
||||
|
||||
foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {
|
||||
my $call = $dxchan->call();
|
||||
my $t = cldatetime($dxchan->startt);
|
||||
my $type = $dxchan->is_node ? "NODE" : "USER";
|
||||
my $sort = " ";
|
||||
if ($dxchan->is_node) {
|
||||
$sort = "DXSP" if $dxchan->is_spider;
|
||||
$sort = "CLX " if $dxchan->is_clx;
|
||||
$sort = "DXNT" if $dxchan->is_dxnet;
|
||||
$sort = "AR-C" if $dxchan->is_arcluster;
|
||||
$sort = "AK1A" if $dxchan->is_ak1a;
|
||||
}
|
||||
my $name = $dxchan->user->name || " ";
|
||||
my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%5.2f", $dxchan->pingave) : " ";
|
||||
my $conn = $dxchan->conn;
|
||||
my $ip = '';
|
||||
if ($conn) {
|
||||
$ip = $conn->{peerhost} if exists $conn->{peerhost};
|
||||
$ip = "AGW Port ($conn->{agwport})" if exists $conn->{agwport};
|
||||
}
|
||||
push @out, sprintf "%10s $type $sort $t %-10.10s $ping $ip", $call, $name;
|
||||
}
|
||||
|
||||
return (1, @out)
|
||||
|
Loading…
Reference in New Issue
Block a user