}
}
+sub active
+{
+ return $sock;
+}
+
sub _sendf
{
my $sort = shift || confess "need a valid AGW command letter";
}
}
if (isdbg('raw')) {
- dbgdump('raw', "send $bytes_written: ", $msg);
+ dbgdump('raw', "AGW send $bytes_written: ", $msg);
}
$offset += $bytes_written;
$bytes_to_write -= $bytes_written;
if ($bytes_read > 0) {
$inmsg .= $msg;
if (isdbg('raw')) {
- dbgdump('raw', "read $bytes_read: ", $msg);
+ dbgdump('raw', "AGW read $bytes_read: ", $msg);
}
}
} else {
$conn->to_connected($call, 'A', $conn->{csort} = 'ax25');
}
} elsif ($sort eq 'd') {
- dbg('agw', "AGW '$from'->'$to' port: $port Disconnected");
+ my $d = unpack "Z*", $data;
+ $d =~ s/\cM$//;
+ dbg('agw', "AGW '$from'->'$to' port: $port Disconnected ($d)");
my $conn = _find($from eq $main::mycall ? $to : $from);
if ($conn) {
&{$conn->{eproc}}() if $conn->{eproc};