X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FExtMsg.pm;h=cd18eb9318039974b7ae7f95101c7c9aeb534f46;hb=4a8336156c820698be4933a3e36513750709926d;hp=ce73b79f489ce3f042f34ae934d93f28c00a0877;hpb=55777026bbfa5b9cf988a85bbe28fe94993482b8;p=spider.git diff --git a/perl/ExtMsg.pm b/perl/ExtMsg.pm index ce73b79f..cd18eb93 100644 --- a/perl/ExtMsg.pm +++ b/perl/ExtMsg.pm @@ -71,9 +71,8 @@ sub dequeue } elsif ($conn->{state} eq 'WL' ) { $msg = uc $msg; if (is_callsign($msg)) { + &{$conn->{rproc}}($conn, "A$msg|telnet"); _send_file($conn, "$main::data/connected"); - $conn->{call} = $msg; - &{$conn->{rproc}}($conn, "A$conn->{call}|telnet"); $conn->{state} = 'C'; } else { $conn->send_now("Sorry $msg is an invalid callsign"); @@ -118,7 +117,7 @@ sub new_client { $conn->{state} = 'WL'; # $conn->send_raw("\xff\xfe\x01\xff\xfc\x01\ff\fd\x22"); # $conn->send_raw("\xff\xfa\x22\x01\x01\xff\xf0"); - $conn->send_raw("\xFF\xFC\x01"); +# $conn->send_raw("\xFF\xFC\x01"); _send_file($conn, "$main::data/issue"); $conn->send_raw("login: "); } else { @@ -131,12 +130,11 @@ sub start_connect my $call = shift; my $fn = shift; my $conn = ExtMsg->new(\&main::rec); - $conn->{call} = $call; + $conn->conns($call); my $f = new IO::File $fn; push @{$conn->{cmd}}, <$f>; $f->close; - push @main::outstanding_connects, {call => $call, conn => $conn}; $conn->_dotimeout($deftimeout); $conn->_docmd; } @@ -171,9 +169,6 @@ sub _docmd } last if $conn->{state} eq 'E'; } - unless (exists $conn->{cmd} && @{$conn->{cmd}}) { - @main::outstanding_connects = grep {$_->{call} ne $conn->{call}} @main::outstanding_connects; - } } sub _doconnect @@ -261,7 +256,6 @@ sub _timeout my $conn = shift; dbg('connect', "timed out after $conn->{timeval} seconds"); $conn->disconnect; - @main::outstanding_connects = grep {$_->{call} ne $conn->{call}} @main::outstanding_connects; } # handle callsign and connection type firtling