X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FExtMsg.pm;h=49982a18c9aafd9e2f54588cb7aad99c1172b7ac;hb=076b94b8ba5b24af929056d5e4c5217427f93b9e;hp=838c74e122460dfae490b6737727dec32590be99;hpb=3b3b52396a19281c24481f0fcf7d216f426f94d9;p=spider.git diff --git a/perl/ExtMsg.pm b/perl/ExtMsg.pm index 838c74e1..49982a18 100644 --- a/perl/ExtMsg.pm +++ b/perl/ExtMsg.pm @@ -211,6 +211,10 @@ sub _doconnect } else { dbg('connect', "***Connect Failed to $host $port $!"); } + } elsif ($sort eq 'agw') { + # turn it into an AGW object + bless $conn, 'AGWMsg'; + $r = $conn->connect($line); } elsif ($sort eq 'ax25' || $sort eq 'prog') { local $^F = 10000; # make sure it ain't closed on exec my ($a, $b) = IO::Socket->socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC); @@ -308,7 +312,7 @@ sub _dochat } if ($line =~ /\Q$expect/i) { dbg('connect', "got: \"$expect\" sending: \"$send\""); - $conn->send_later($send); + $conn->send_later("D$conn->{call}|$send"); delete $conn->{msg}; # get rid any input if a match return; } @@ -337,7 +341,7 @@ sub _doclient $conn->conns($call); $conn->{csort} = $f[1] if $f[1]; $conn->{state} = 'C'; - &{$conn->{rproc}}($conn, "O$call|telnet"); + &{$conn->{rproc}}($conn, "O$call|$conn->{csort}"); delete $conn->{cmd}; $conn->{timeout}->del if $conn->{timeout}; }