Commit Graph

1617 Commits

Author SHA1 Message Date
Dirk Koopman
e0529a01be add cty-2311 prefixes 2013-11-19 12:20:25 +00:00
Dirk Koopman
6642c22f0f Merge branch 'master' of /scm/spider 2013-09-13 18:45:26 +01:00
Dirk Koopman
e3994401fa add CTY2309 + wpxloc.raw files 2013-09-13 18:44:47 +01:00
Dirk Koopman
59a8866a3f Merge branch 'master' of /scm/spider 2013-09-12 13:40:58 +01:00
Dirk Koopman
725d28d2eb fix AsyncMsg state handling and sh/qrz 2013-09-12 13:40:05 +01:00
Dirk Koopman
856cb98bb0 Merge branch 'master' of /scm/spider 2013-09-11 16:18:28 +01:00
Dirk Koopman
564b5b3a0c add get/keps command to load AMSAT keps
Fix AsyncMsg to handle basic 302 redirects.
2013-09-11 16:17:30 +01:00
Dirk Koopman
2afa578fe5 get 302 working in AsyncMsg, basic get/keps 2013-09-11 00:36:45 +01:00
Dirk Koopman
b099b4a232 update sh/qrz and start get/keps 2013-09-10 23:42:24 +01:00
Dirk Koopman
e941823af3 fix sh/time undefined $last[0] error 2013-09-10 19:58:18 +01:00
Dirk Koopman
8bb293d5a1 AsyncMsgise sh/db0sdx
Add POST and on_disconnect handlers in AsyncMsg.pm
2013-09-09 15:20:32 +01:00
Dirk Koopman
89eaa6762e AsyncMsgise sh/425 2013-09-08 16:17:17 +01:00
Dirk Koopman
cc83de0d57 AsyncMsgise sh/qrz
Which was quite easy compared to some...
2013-09-07 23:08:15 +01:00
Dirk Koopman
9fc2ec1708 mv HTTPMsg to AsyncMsg, add 'raw' method
Convert sh/wm7d command to AsyncMsg.
Modify all the HTTPMsg converted cmds to use AsyncMsg.

Add a 'raw' 'telnet' handler. This allows one to query things with command
prompts or stuff that isn't a HTTP server. But it ain't always easy. See the
messing around in sh/wm7d I had to do, to get something that is stable given
that the thing that I am looking doesn't have a \n at the end.

It's just a prompt.
2013-09-07 18:47:48 +01:00
Dirk Koopman
fd2d8314dd Add HTTPMsg.pm an async HTTP agent
This is a start of making all the Net::Telnet things redundant.

HTTPMsg.pm is likely to be substantially modified or replaced.

W.I.P
2013-09-07 00:10:36 +01:00
Dirk Koopman
a55492232d update Changes 2013-09-06 14:26:47 +01:00
Dirk Koopman
c675748ded added support for subroutines in commands
Traditionally, a command is a piece of perl that is a simple
in line lump of code e.g (blank.pl):

		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);

It is now possible to have a 'handler' and any other code you like in
a command file, for instance (again blank.pl):

sub this {}

sub that {}

sub another {}

sub handle
{
		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);
}

The 'sub handle' being the cue that distiguishes one form from the other.

The first form has the 'sub handle { <code> }' wrapped around it so, internally
they are treated the same. Each command is placed in its own DXCommandmode sub
package with a standard set of packages "use"d in front of it.

For now (at least) any functions you declare are just that. "$self" is a DXCommandmode
not a blessed reference to this command's full package name, you cannot use things like

$self->this() or $self->that()

they must be called as local functions.

This may change in the future.

Conflicts:

	perl/DXChannel.pm
	perl/Version.pm
2013-09-06 14:22:38 +01:00
Dirk Koopman
f67292b60a fix sh/contest and add CTY2308 prefixes 2013-09-06 13:42:02 +01:00
Dirk Koopman
7f7535c09c Make peerhost data more consistent 2013-07-21 23:38:24 +01:00
Dirk Koopman
385440511e fix ipv6 crash in Msg.pm 2013-07-21 22:46:18 +01:00
Dirk Koopman
a7b139d6ce try again with cty2210 2012-05-31 17:08:50 +01:00
Dirk Koopman
2321d9d1b5 Add CTY2210 prefix changes 2012-05-31 09:49:01 +01:00
Dirk Koopman
996671c938 add cty2209 prefix changes 2012-05-29 11:37:57 +01:00
Dirk Koopman
96c0247dec add DXSql/Pg.pm and CTY-2206 Prefix changes 2012-04-10 14:50:26 +01:00
Dirk Koopman
b2aa9a9839 add new wpxloc.raw + CTY2204 prefix changes 2012-03-13 18:31:26 +00:00
Dirk Koopman
427bd0165d alter index adding dbg statement order 2012-03-12 23:41:57 +00:00
Dirk Koopman
61885d0dba breath on database storage engines
Check that Mysql / sqlite databases work
Add ipaddr column to spot table if required
from now on add ip addresses to table if present (NULL otherwise)
2012-03-12 23:26:55 +00:00
Dirk Koopman
e1de45af27 fix (different) pc34 UNIVERSAL typo in DXProt 2012-03-09 22:51:01 +00:00
Dirk Koopman
a50f4484d8 fix DXUser UNIVERSAL::isa typo 2012-03-09 22:42:35 +00:00
Dirk Koopman
40953f6b16 add yet more changes in pc34 2012-03-09 22:15:30 +00:00
Dirk Koopman
dabf8497c5 try to fix unblessed refs in PC34s 2012-03-09 22:13:29 +00:00
Dirk Koopman
7060bb41e3 update version 2012-02-15 15:44:26 +00:00
Dirk Koopman
4cb816f890 add CTY-2202 prefix data
and also fix mysql show tables
2012-02-15 15:43:50 +00:00
Dirk Koopman
9ab4359792 er.. actually generate the CTY-2201 prefixes 2012-01-29 10:41:58 +00:00
Dirk Koopman
449de811da add CTY-2201 prefixes 2012-01-29 10:41:23 +00:00
Dirk Koopman
80ef0d854f add CTY2118 changes 2011-12-21 13:35:57 +00:00
Dirk Koopman
84fb1f6e70 fix barf on encountering an empty lockfile 2011-12-20 19:47:28 +00:00
Dirk Koopman
3c2ea668af fix shutdown() error and add CTY2117 2011-11-29 18:50:47 +00:00
Dirk Koopman
192c703baf added cty2116 changes with fixed version 2011-11-05 17:20:43 +00:00
Dirk Koopman
842017697f Merge branch 'master' of ssh://server/scm/spider
Conflicts:
	Changes
	data/cty.dat
	data/prefix_data.pl
2011-11-04 18:06:34 +00:00
Dirk Koopman
9bbfe9a2d3 add CTY2115 prefixes 2011-11-04 18:00:03 +00:00
Dirk Koopman
4ab258ae11 add CTY2113 prefixes 2011-10-25 15:23:41 +01:00
Dirk Koopman
6262a02552 change internal 40m band areas 2011-10-02 13:18:15 +01:00
Dirk Koopman
258f3e1de9 add CTY2110 changes 2011-07-25 21:14:04 +01:00
Dirk Koopman
d3309582fe add ST0 to prefixes 2011-07-23 13:20:36 +01:00
Dirk Koopman
af317b42b0 fix IPV4 handling on non-IPV6 capable hosts 2011-04-04 22:08:02 +01:00
Dirk Koopman
a8cf5442a1 itry to fix outgoing IPV6 connects 2011-04-04 21:54:43 +01:00
Dirk Koopman
dd4a4bf174 add CTY-2106 prefixes 2011-03-29 19:51:52 +01:00
Dirk Koopman
8f652755dc add CTY-2105 prefixes 2011-03-16 10:36:52 +00:00
Dirk Koopman
3c5ad50da6 oops forgot to use gcommit... 2011-03-11 17:16:47 +00:00
Dirk Koopman
7109670a3a increase PC92 A/D slug time to 5 minutes 2010-10-31 16:26:30 +00:00
Dirk Koopman
b7512d7880 allow debug to track cluster config
This is for Jim AD1C really. But "set/debug cluster" will put out
lines like:

CLUSTER: node N0VD-7 added
CLUSTER: user AD6KH added
and
CLUSTER: user AD6KH deleted
CLUSTER: node N0VD-7 deleted

and represent this node's view of which nodes and users are
available on the cluster as a whole.
2010-10-29 17:02:41 +01:00
Dirk Koopman
67e8ed5e4e fix chat problem introdcued last update 2010-10-27 18:02:15 +01:00
Dirk Koopman
fc55b5fa75 add CTY-2009 prefixes (from cty_wt.dat) 2010-10-25 19:52:41 +01:00
Dirk Koopman
450f32dc7e add CTY-2008 from cty_wt.dat, stop chat on pc12
Try using cty_wt.dat instead of cty.dat as it is more complete.

Prevent PC93 chat being downgraded to PC12.
2010-10-25 19:46:02 +01:00
Dirk Koopman
2110beabbe Drop PC12 from pc9x nodes, increase ann dup age.
Assume that PC12s coming from pc9x nodes are coming via some other
route and have been converted.

Increase the default announce dup age from 5 to 18 hrs.
2010-10-25 10:42:08 +01:00
Dirk Koopman
7d74331026 fix dxqsl_export titling in help 2010-10-24 10:34:44 +01:00
Dirk Koopman
75987f0dbc added dbexport & dxqsl_import/export cmds 2010-10-23 23:39:19 +01:00
Dirk Koopman
059fb24925 add cty-2007 2010-10-15 20:42:58 +01:00
Dirk Koopman
2a187a44dc up issue version... 2010-10-05 00:38:41 +01:00
Dirk Koopman
537a4a109f allow 4 letter callsigns, add git id sh/version 2010-06-17 13:26:29 +01:00
Dirk Koopman
cd5b993f99 add ip addresses to dxspots emitted as PC61 2010-06-17 11:45:21 +01:00
Dirk Koopman
2292ddaa6a increase PC41 dupe time, add CTY-2004 data 2010-06-16 17:14:58 +01:00
Dirk Koopman
ddf9f909b9 add start of DB_File -> SQLite changes 2010-05-15 00:15:25 +01:00
Dirk Koopman
eb311dbba7 fix console.pl for Windows better
so that it continues to work OK on Linux.
2010-04-08 13:29:13 +01:00
Dirk Koopman
f583c57eb0 make priv 0 stick on nodes if set 2010-03-18 20:22:19 +00:00
Dirk Koopman
44ac4cfc87 add setting csort to to_connected 2010-03-13 20:42:00 +00:00
Dirk Koopman
c02dc2d8b5 add more fixes for peerhosts 2010-03-13 19:41:54 +00:00
Dirk Koopman
7c7080ad70 try to fix crashes on AGW with peerhost. 2010-03-13 15:55:04 +00:00
Dirk Koopman
a0da21e1af add CTY-2002 changes 2010-03-03 15:10:13 +00:00
Dirk Koopman
cf3be2ab23 Merge commit '64461bf14f8ce1a'
merge in 500khz changes

Conflicts:

	Changes
	perl/Version.pm
2010-03-03 14:50:44 +00:00
Dirk Koopman
ca46fb0822 Merge branch 'ip_address'
Add ip addresses to PC92 A records

Conflicts:

	perl/Version.pm
2010-03-03 14:47:15 +00:00
dirk
1488e94d7a Add clear/cmd_cache command to git 2010-02-26 18:28:43 +00:00
Dirk Koopman
64461bf14f add 500khz band and CTY-1923 prefixes 2009-11-27 12:13:33 +00:00
Dirk Koopman
5167e718e0 add logging of PC92A ip addresses 2009-11-26 12:58:28 +00:00
Dirk Koopman
82267cf9d2 fix IP addresses on multiple entries in PC92 A 2009-11-26 11:22:16 +00:00
Dirk Koopman
e1d5c2a325 add IP Address to PC92 A record
Start some extra auditing.
2009-11-26 11:10:33 +00:00
Dirk Koopman
bbb282d33d iadd CTY-1922 changes 2009-11-25 17:21:34 +00:00
Dirk Koopman
99077d96c9 add xml version of sh/qrz
you will need a subscription to the xml service. See:
http://www.qrz.com/XML/index.html for more info.

Disable the incomplete Encoding of textual data. Work out what to do after
more agreement with people.
2009-11-25 17:15:57 +00:00
Dirk Koopman
47383bebd8 add version 2009-11-14 11:47:02 +00:00
Dirk Koopman
4b2584a688 limit sh/newc et al to 10 levels
One can change this with a set/var $Route::maxlevel = 10
2009-08-28 15:23:27 +01:00
Dirk Koopman
fda75c87fa add CTY-1912 changes 2009-07-08 08:29:41 +01:00
Dirk Koopman
fbaea41220 add CTY-1911 prefixes 2009-06-26 21:08:21 +01:00
Dirk Koopman
24f7f5036e Add CTY-1910 cty .dat 2009-06-15 11:53:28 +01:00
Dirk Koopman
535b2f6436 add CTY-1909 prefixes 2009-06-04 21:04:22 +01:00
Dirk Koopman
5b66ad2285 fix warnings in debug.c in the C Client 2009-06-03 22:01:21 +01:00
Dirk Koopman
cc5fd938f5 add CTY-1908 prefix data 2009-06-02 06:12:44 +01:00
Dirk Koopman
94c45ddb1d added CTY-1907 prefixes 2009-05-29 13:26:53 +01:00
Dirk Koopman
c20c796d61 add CTY-1905 prefixes 2009-05-19 20:47:31 +01:00
Dirk Koopman
5d77cab91d fix issue.pl to use "new style" git commands 2009-05-15 23:15:25 +01:00
Dirk Koopman
2926213cad add CTY1904 prefixes 2009-05-15 21:50:12 +01:00
Dirk Koopman
6650170300 add new wpxloc.raw + cty-1903 data 2009-03-04 13:33:26 +00:00
Dirk Koopman
74d1736596 add Geo::TAF changes from Robin Johnson + CTY1902 2009-02-26 11:11:53 +00:00
Dirk Koopman
3bbdbaf825 add missing show/motd command 2008-12-29 22:00:08 +00:00
Dirk Koopman
0efcf0d784 add show/motd command
and also CTY-1817 prefix changes
2008-12-29 18:23:48 +00:00
Dirk Koopman
02f97e2b11 make it more difficult to have $mycall & $myalias the same 2008-12-28 23:30:18 +00:00
Dirk Koopman
01c7ebc6ec fix sh/425 to point to new server
unfortunately this is http/1.1 only which causes problems with
detecting the EOF ('cos there ain't one). So it is slower than it was.

Add CTY-1814 prefixes 'Kingman Reef'
2008-11-17 00:09:29 +00:00
Dirk Koopman
e78daea280 added CTY-1811 prefixes 2008-10-21 19:27:19 +01:00
Dirk Koopman
85bdc933dd set $main::maxconnect back to 0 as default 2008-10-04 13:35:36 +01:00
Dirk Koopman
b863ad6065 make sure the maxconnect check is on incoming only 2008-10-02 23:03:15 +01:00