2 # DXSpider - The Web Interface Helper Routines
4 # Copyright (c) 2015 Dirk Koopman G1TLH
16 our @ISA = qw(DXCommandmode Exporter);
17 our @EXPORT = qw(is_webcall find_next_webcall);
19 our $maxssid = 64; # the maximum number of bare @WEB connections we will allow - this is really to stop runaway connections from the dxweb app
23 return $_[0] =~ /^\#WEB/;
28 foreach my $i (1 .. $maxssid) {
29 next if DXChannel::get("\#WEB-$i");
37 my $self = DXChannel::alloc(@_);
45 my $call = $self->call;
47 return if $self->{disconnecting}++;
49 delete $self->{senddbg};
51 LogDbg('DXCommand', "Web $call disconnected");
53 # this done to avoid any routing or remembering of unwanted stuff
54 DXChannel::disconnect($self);