projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d518a0
)
fix cf broadcasts
author
minima
<minima>
Thu, 24 Feb 2005 18:47:24 +0000
(18:47 +0000)
committer
minima
<minima>
Thu, 24 Feb 2005 18:47:24 +0000
(18:47 +0000)
perl/Aranea.pm
patch
|
blob
|
history
perl/Route/Node.pm
patch
|
blob
|
history
diff --git
a/perl/Aranea.pm
b/perl/Aranea.pm
index 475fdd05d12f71c1527c9477fb6d2e1393549ad5..c04534b73bacf2d2cdb2ea38a1b282275834fee8 100644
(file)
--- a/
perl/Aranea.pm
+++ b/
perl/Aranea.pm
@@
-126,7
+126,7
@@
sub start
unless ($self->{outbound}) {
my $thing = Thingy::Rt->new_cf;
$thing->broadcast;
unless ($self->{outbound}) {
my $thing = Thingy::Rt->new_cf;
$thing->broadcast;
- $
self
->lastcf($main::systime);
+ $
main::me
->lastcf($main::systime);
}
# run a script send the output to the debug file
}
# run a script send the output to the debug file
@@
-186,15
+186,25
@@
sub per_minute
if ($dxchan->is_node) {
if ($main::systime >= $dxchan->lastcf + $cf_interval) {
my $call = $dxchan->call;
if ($dxchan->is_node) {
if ($main::systime >= $dxchan->lastcf + $cf_interval) {
my $call = $dxchan->call;
- my $thing = Thingy::Rt->new();
- $thing->{user} = $call unless $dxchan == $main::me;
- if (my $nref = Route::Node::get($call)) {
-
$thing->copy_pc16_data($nref)
;
- $thing->broadcast
($dxchan)
;
- $
dxchan
->lastcf($main::systime);
+ if ($dxchan == $main::me) {
+
+ # i am special but, currently, still a node
+
my $thing = Thingy::Rt->new_cf
;
+ $thing->broadcast;
+ $
self
->lastcf($main::systime);
} else {
} else {
- dbg("Aranea::per_minute: Route::Node for $call disappeared");
- $dxchan->disconnect;
+
+ # i am a pc protocol node connected directly
+ my $thing = Thingy::Rt->new();
+ $thing->{user} = $call unless $dxchan == $main::me;
+ if (my $nref = Route::Node::get($call)) {
+ $thing->copy_pc16_data($nref);
+ $thing->broadcast($dxchan);
+ $dxchan->lastcf($main::systime);
+ } else {
+ dbg("Aranea::per_minute: Route::Node for $call disappeared");
+ $dxchan->disconnect;
+ }
}
}
}
}
}
}
diff --git
a/perl/Route/Node.pm
b/perl/Route/Node.pm
index bd69d3d77290947af5089a73484ebc339cddbfe1..92501266ee24957d88c8b33a503385e0e0ef6709 100644
(file)
--- a/
perl/Route/Node.pm
+++ b/
perl/Route/Node.pm
@@
-339,15
+339,6
@@
sub _deluser
return $self->_dellist('users', @_);
}
return $self->_dellist('users', @_);
}
-sub DESTROY
-{
- my $self = shift;
- my $pkg = ref $self;
- my $call = $self->{call} || "Unknown";
-
- dbg("destroying $pkg with $call") if isdbg('routelow');
-}
-
#
# generic AUTOLOAD for accessors
#
#
# generic AUTOLOAD for accessors
#