Merge branch 'master' into SIMPLEROUTE
authorDirk Koopman <djk@tobit.co.uk>
Thu, 14 Jun 2007 15:16:43 +0000 (16:16 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Thu, 14 Jun 2007 15:16:43 +0000 (16:16 +0100)
Conflicts:

Changes
cmd/Aliases
perl/DXChannel.pm
perl/DXProt.pm
perl/DXSql/SQLite.pm
perl/DXSql/mysql.pm
perl/DXXml.pm
perl/DXXml/Cmd.pm
perl/DXXml/IM.pm
perl/DXXml/Text.pm
perl/Msg.pm
perl/Route/Node.pm
perl/Version.pm

fix conflicts from merge

1  2 
Changes
data/.gitignore
perl/DXChannel.pm
perl/Version.pm
perl/cluster.pl

diff --combined Changes
index 899cc36645c101235a737934eacef90f41ce5c30,b1cbb1c99dc39b7ec6aa90f1a2c7e35a444def01..edf2bfe3d4c1077d4d8ec16139c2e75452236271
+++ b/Changes
@@@ -1,11 -1,38 +1,41 @@@
- 15Jan06=======================================================================
 +13Jun06=======================================================================
 +1. start using git.
 +2. change all the version / build numbering.
 -1. prepare for git repository and moving of anon cvs repository to 
+ 14Jun07=======================================================================
 -1. add show/myfdx to Aliases. 
++1. prepare for git repository and moving of anon cvs repository to
+ scm.tobit.co.uk.
+ 11Jun07=======================================================================
+ 1. Change the frequency normalisation for DX Spot dupe checks so that any
+ decimal part is thrown away (in other words: truncate the freq to integer khz)
+ 20May07=======================================================================
+ 1. add 1704 cty.dat
+ 08Apr07=======================================================================
+ 1. add CTY-1703 cty.dat
+ 2. alter the way the dupefile deletion is done.
+ 18Mar07=======================================================================
+ 1. change URL in show/425.
+ 04Mar07=======================================================================
+ 1. add CTY 1702 prefix data files
+ 22Feb07=======================================================================
 -2. simplify PC17 handling 
++1. add show/myfdx to Aliases.
+ 15Feb07=======================================================================
+ 1. allow convkeps.pl to parse NORAD keps files.
+ 22Jan07=======================================================================
+ 1. disable default propagation of PC9x sentences
++2. simplify PC17 handling
+ 16Jan07=======================================================================
+ 1. back ported a change to PC16 handling so that a locally connected node's
+ info clears out and generally overrides any residual PC16 info gathered from
+ elsewhere.
+ 15Jan07=======================================================================
  1. added CTY-1701
- 07Jan06=======================================================================
+ 07Jan07=======================================================================
 -1. use IO::Socket blocking where available and switch off or ignore all 
 +1. use IO::Socket blocking where available and switch off or ignore all
  attempts to block.
+ 05Jan07=======================================================================
+ 1. increase default ephemeral deduping on PC15 to 6 minutes (from 2).
+ 23Nov06=======================================================================
+ 1. added wrapping to over length lines in console.pl.
  03Nov06=======================================================================
  1. add CTY-1609 changes
  2. add back Geo::Taf code with submitted mods
diff --combined data/.gitignore
index 0000000000000000000000000000000000000000,fea0d5179c327c190201ac00a64bcbf16ecac870..0a6c856e306da773a326e6a0825eac38509dca93
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,8 +1,10 @@@
+ bad*
+ debug
+ *.db
+ *.v?
+ spots
+ user*
+ dupefile
+ log
++wwv
++wcy
diff --combined perl/DXChannel.pm
index e386d0849e2b5330c53a8727d1511d0eb065640f,699e87a8d8da0a4b27008413281cb0be4076af2f..8ab5a6fbc7e4695974050d5e87d1fb3909ed22be
@@@ -119,11 -119,9 +119,10 @@@ $count = 0
                  lastmsgpoll => '0,Last Msg Poll,atime',
                  inscript => '9,In a script,yesno',
                  handle_xml => '9,Handles XML,yesno',
 +                do_pc9x => '9,Handles PC9x,yesno',
                  inqueue => '9,Input Queue,parray',
                 );
  
  # object destruction
  sub DESTROY
  {
@@@ -468,7 -466,7 +467,7 @@@ sub disconnec
        my $user = $self->{user};
        
        $user->close() if defined $user;
 -      $self->{conn}->disconnect;
 +      $self->{conn}->disconnect if $self->{conn};
        $self->del();
  }
  
diff --combined perl/Version.pm
index 92136f5750e3d5e6678b53d392df93a4b5fe523b,ccc0cfba064f338694054fe7b6f397d9a3089565..230b4a8395da398715f4d4b2bf8dc7f22e41a360
@@@ -1,10 -1,15 +1,15 @@@
  #
- # $Id$
+ # Version information for DXSpider
+ #
+ # DO NOT ALTER THIS FILE. It is generated automatically
+ # and will be overwritten
  #
  
  package main;
  
  use vars qw($version $build);
  
- $version = "1.54";
- $build = 467;
 -$version = '1.53';
 -$build = '7';
++$version = '1.54';
++$build = '3';
+ 1;
diff --combined perl/cluster.pl
index c517a23179d9d2eb35c8849bde6d57490bca12e0,37ace021654a4858cab156ab4196e66c083e61e5..3c4548b6414b83441e9d9bec69c57fb8c71cb005
@@@ -114,16 -114,16 +114,16 @@@ use Local
  package main;
  
  use strict;
 -use vars qw(@inqueue $systime $version $starttime $lockfn @outstanding_connects 
 +use vars qw(@inqueue $systime $starttime $lockfn @outstanding_connects 
                        $zombies $root @listeners $lang $myalias @debug $userfn $clusteraddr 
                        $clusterport $mycall $decease $is_win $routeroot $me $reqreg $bumpexisting
 -                      $allowdxby $dbh $dsn $dbuser $dbpass $do_xml
 +                      $allowdxby $dbh $dsn $dbuser $dbpass $do_xml $systime_days $systime_daystart
                   );
  
  @inqueue = ();                                        # the main input queue, an array of hashes
  $systime = 0;                                 # the time now (in seconds)
  $starttime = 0;                 # the starting time of the cluster   
#@outstanding_connects = ();     # list of outstanding connects
+ @outstanding_connects = ();     # list of outstanding connects
  @listeners = ();                              # list of listeners
  $reqreg = 0;                                  # 1 = registration required, 2 = deregister people
  $bumpexisting = 1;                            # 1 = allow new connection to disconnect old, 0 - don't allow it
@@@ -323,8 -323,6 +323,8 @@@ sub AGWrestar
  #############################################################
  
  $starttime = $systime = time;
 +$systime_days = int ($systime / 86400);
 +$systime_daystart = $systime_days * 86400; 
  $lang = 'en' unless $lang;
  
  unless ($DB::VERSION) {
@@@ -452,8 -450,6 +452,8 @@@ DXProt->init()
  
  # put in a DXCluster node for us here so we can add users and take them away
  $routeroot = Route::Node->new($mycall, $version*100+5300, Route::here($main::me->here)|Route::conf($main::me->conf));
 +$routeroot->do_pc9x(1);
 +$routeroot->via_pc92(1);
  
  # make sure that there is a routing OUTPUT node default file
  #unless (Filter::read_in('route', 'node_default', 0)) {
@@@ -502,13 -498,7 +502,13 @@@ for (;;) 
        # do timed stuff, ongoing processing happens one a second
        if ($timenow != $systime) {
                reap() if $zombies;
 -              IsoTime::update($systime = $timenow);
 +              $systime = $timenow;
 +              my $days = int ($systime / 86400);
 +              if ($systime_days != $days) {
 +                      $systime_days = $days;
 +                      $systime_daystart = $days * 86400;
 +              }
 +              IsoTime::update($systime);
                DXCron::process();      # do cron jobs
                DXCommandmode::process(); # process ongoing command mode stuff
                DXXml::process();