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+(.*)$/) {
23 $addr =~ s/\s+using.*$//;
26 $addr = "$r->{peerhost}/$r->{peerport}";
28 my $csort = $r->{csort} || '';
29 my $sort = $r->{sort} || '';
30 push @out, sprintf(" %3d %-9s %-27.27s %3s %7s %8s %-8s",
33 $csort, $sort, ref $r);
37 push @out, "$count Connections ($Msg::noconns Allocated)";