2 # show active connections
4 # Copyright (c) 2001 Dirk Koopman G1TLH
10 return (1, $self->msg('e5')) if $self->priv < 1;
14 push @out, "Cnum Call Address/Port State Type Dir. Module";
16 foreach my $call (sort keys %Msg::conns) {
17 my $r = $Msg::conns{$call};
21 if ($c =~ /^Server\s+(\S+)/) {
25 $addr = "AGW Port ($r->{agwport})" if exists $r->{agwport};
26 $addr = "BPQ Stream ($r->{bpqstream})" if exists $r->{bpqstream};
28 $addr ||= "$r->{peerhost}/$r->{peerport}";
31 my $csort = $r->{csort} || '';
32 my $sort = $r->{sort} || '';
33 push @out, sprintf(" %3d %-9s %-27.27s %3s %7s %8s %-8s",
36 $csort, $sort, ref $r);
40 push @out, "$count Connections ($Msg::noconns Allocated)";