projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Id
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 9ef0cec243671b78dafffd5ab306cb7c33cc3d4c..1994846b20894092ffd6f81a56c25057fe5f6169 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-113,6
+113,8
@@
$count = 0;
version => '1,Node Version',
build => '1,Node Build',
verified => '9,Verified?,yesno',
version => '1,Node Version',
build => '1,Node Build',
verified => '9,Verified?,yesno',
+ newroute => '1,New Style Routing,yesno',
+ ve7cc => '0,VE7CC program special,yesno',
);
use vars qw($VERSION $BRANCH);
);
use vars qw($VERSION $BRANCH);
@@
-302,6
+304,15
@@
sub sort
return @_ ? $self->{'sort'} = shift : $self->{'sort'} ;
}
return @_ ? $self->{'sort'} = shift : $self->{'sort'} ;
}
+# find out whether we are prepared to believe this callsign on this interface
+sub is_believed
+{
+ my $self = shift;
+ my $call = shift;
+
+ return grep $call eq $_, $self->user->believe;
+}
+
# handle out going messages, immediately without waiting for the select to drop
# this could, in theory, block
sub send_now
# handle out going messages, immediately without waiting for the select to drop
# this could, in theory, block
sub send_now
@@
-426,6
+437,7
@@
sub disconnect
my $self = shift;
my $user = $self->{user};
my $self = shift;
my $user = $self->{user};
+ main::clean_inqueue($self); # clear out any remaining incoming frames
$user->close() if defined $user;
$self->{conn}->disconnect;
$self->del();
$user->close() if defined $user;
$self->{conn}->disconnect;
$self->del();
@@
-636,7
+648,7
@@
sub AUTOLOAD
# this clever line of code creates a subroutine which takes over from autoload
# from OO Perl - Conway
*$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}};
# this clever line of code creates a subroutine which takes over from autoload
# from OO Perl - Conway
*$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}};
-
goto &$AUTOLOAD;
+ goto &$AUTOLOAD;
}
}