+28Aug00=======================================================================
+1. changes DXChannel::get_all_ak1a to get_all_nodes.
26Aug00=======================================================================
1. make blank origins on messages the node call.
2. added new version of FAQ from Ian G0VGS
push @out, " Callsign Type Started Ave RTT";
-foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all_ak1a ) {
+foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all_nodes ) {
my $call = $dxchan->call();
my $t = cldatetime($dxchan->startt);
my $sort;
push @out, "Node Callsigns";
if ($list[0] && $list[0] =~ /^NOD/) {
- my @ch = sort {$a->call cmp $b->call} DXChannel::get_all_ak1a();
+ my @ch = sort {$a->call cmp $b->call} DXChannel::get_all_nodes();
my $dxchan;
foreach $dxchan (@ch) {
pingave => '0,Ping ave time',
logininfo => '9,Login info req,yesno',
talklist => '0,Talk List,parray',
+ node => '5,Node data',
);
# object destruction
undef $self->{inwwvfilter};
undef $self->{inspotfilter};
undef $self->{passwd};
+ undef $self->{node};
}
# create a new channel object [$obj = DXChannel->new($call, $msg_conn_obj, $user_obj)]
#
# gimme all the ak1a nodes
#
-sub get_all_ak1a
+sub get_all_nodes
{
- my @list = DXChannel->get_all();
my $ref;
my @out;
- foreach $ref (@list) {
+ foreach $ref (values %channels) {
push @out, $ref if $ref->is_node;
}
return @out;
# return a list of all users
sub get_all_users
{
- my @list = DXChannel->get_all();
my $ref;
my @out;
- foreach $ref (@list) {
+ foreach $ref (values %channels) {
push @out, $ref if $ref->is_user;
}
return @out;
# return a list of all user callsigns
sub get_all_user_calls
{
- my @list = DXChannel->get_all();
my $ref;
my @out;
- foreach $ref (@list) {
- push @out, $ref->call if $ref->is_user;
+ foreach $ref (values %channels) {
+ push @out, $ref->{call} if $ref->is_user;
}
return @out;
}
my $call = shift;
my $ref;
my $clref;
- my @nodelist = DXChannel::get_all_ak1a();
# bat down the message list looking for one that needs to go off site and whose
# nearest node is not busy.
dbg('msg', "queue msg ($sort)\n");
+ my @nodelist = DXChannel::get_all_nodes;
foreach $ref (@msg) {
# firstly, is it private and unread? if so can I find the recipient
# in my cluster node list offsite?
{
my ($self, $line) = @_;
my @field = split /\^/, $line;
+ return unless @field;
+
pop @field if $field[-1] eq '~';
# print join(',', @field), "\n";
{
my $s = shift; # the line to be rebroadcast
my @except = @_; # to all channels EXCEPT these (dxchannel refs)
- my @dxchan = DXChannel::get_all_ak1a();
+ my @dxchan = DXChannel::get_all_nodes();
my $dxchan;
# send it if it isn't the except list and isn't isolated and still has a hop count
{
my $s = shift; # the line to be rebroadcast
my @except = @_; # to all channels EXCEPT these (dxchannel refs)
- my @dxchan = DXChannel::get_all_ak1a();
+ my @dxchan = DXChannel::get_all_nodes();
my $dxchan;
# send it if it isn't the except list and isn't isolated and still has a hop count